changeset 10544:2125344def41

some more cola - misplaced break
author henry
date Fri, 08 Aug 2003 23:26:48 +0000
parents 4e9418dc7c28
children 0a6d99a40d39
files subreader.c
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Fri Aug 08 22:56:32 2003 +0000
+++ b/subreader.c	Fri Aug 08 23:26:48 2003 +0000
@@ -1694,15 +1694,10 @@
 		// we have a (likely) subtitle file
 		if (found) {
 		    int prio = 0;
-		    if (tmp_sub_id && (sub_match_fuzziness >= 1))
+		    if (tmp_sub_id && (sub_match_fuzziness >= 1) && (strcmp(tmp_fname_trim, tmpresult) == 0))
 		    {
-			sprintf(tmpresult, "%s %s", f_fname_trim, tmp_sub_id);
-			printf("dvdsublang...%s\n", tmpresult);
-			if (strcmp(tmp_fname_trim, tmpresult) == 0) {
-			    // matches the movie name + lang extension
-			    prio = 5;
-			    break;
-			}
+			// matches the movie name + lang extension
+			prio = 5;
 		    } else if (strcmp(tmp_fname_trim, f_fname_trim) == 0) {
 			// matches the movie name
 			prio = 4;