diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-08 23:26:48 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-08 23:26:48 +0000 |
commit | 6c244260323d981ac47bc5ce75864da6d2f7efd1 (patch) | |
tree | 8f8fa09b3f23c3bf6ac73da1bb20d8224d6fd728 /subreader.c | |
parent | e157d8f073efda5b4a881ed63a22c7602f2b87e7 (diff) | |
download | mpv-6c244260323d981ac47bc5ce75864da6d2f7efd1.tar.bz2 mpv-6c244260323d981ac47bc5ce75864da6d2f7efd1.tar.xz |
some more cola - misplaced break
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10545 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/subreader.c b/subreader.c index 14cf51034c..1ccc6f0cc1 100644 --- a/subreader.c +++ b/subreader.c @@ -1694,15 +1694,10 @@ char** sub_filenames(char* path, char *fname) // 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; |