Mercurial > mplayer.hg
diff subreader.c @ 9884:d7b86f7d1406
turn most of the subtitle matching fuzziness off by default
| author | henry |
|---|---|
| date | Tue, 08 Apr 2003 20:41:20 +0000 |
| parents | eea06a971711 |
| children | 9f3e8c42a7cb |
line wrap: on
line diff
--- a/subreader.c Tue Apr 08 18:05:41 2003 +0000 +++ b/subreader.c Tue Apr 08 20:41:20 2003 +0000 @@ -40,6 +40,8 @@ int sub_no_text_pp=0; // 1 => do not apply text post-processing // like {\...} elimination in SSA format. +int subfuzzy_enabled=0; // be _really_ fuzzy when looking for subtitles + /* Use the SUB_* constant defined in the header file */ int sub_format=SUB_INVALID; #ifdef USE_SORTSUB @@ -1696,7 +1698,7 @@ } else { // doesn't contain the movie name // don't try in the mplayer subtitle directory - if (j == 0) { + if ((j == 0) && subfuzzy_enabled) { sprintf(tmpresult, "%s%s", f_dir, de->d_name); if ((f = fopen(tmpresult, "rt"))) { fclose(f);
