diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-04-08 20:41:20 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-04-08 20:41:20 +0000 |
commit | 819515d6fbe7c7869600f8d9782fc66799c282d7 (patch) | |
tree | 8319999b3f83570541209abc732b7cbba4aa633e /subreader.c | |
parent | a3eaf74b6f7f0bf6d505c483f16b9c3fbe8f13b4 (diff) | |
download | mpv-819515d6fbe7c7869600f8d9782fc66799c282d7.tar.bz2 mpv-819515d6fbe7c7869600f8d9782fc66799c282d7.tar.xz |
turn most of the subtitle matching fuzziness off by default
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9885 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r-- | subreader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c index 9f6b99590a..6127546ee4 100644 --- a/subreader.c +++ b/subreader.c @@ -40,6 +40,8 @@ static int sub_slacktime = 20000; //20 sec 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 @@ char** sub_filenames(char* path, char *fname) } 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); |