diff options
author | wm4 <wm4@nowhere> | 2014-05-04 10:31:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-04 10:31:24 +0200 |
commit | 94441ed13963356fa25f7e52a12e36387220ebba (patch) | |
tree | ae240ca341bf05447b35d5c74dcb8e54e9addb6d /sub | |
parent | f26fe90c8af7fe9d394ab4d000de9d34796ba05c (diff) | |
download | mpv-94441ed13963356fa25f7e52a12e36387220ebba.tar.bz2 mpv-94441ed13963356fa25f7e52a12e36387220ebba.tar.xz |
options: merge ---sub-auto-match with --sub-auto
There's no reason why these should be separate.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/find_subfiles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/find_subfiles.c b/sub/find_subfiles.c index 5efbd20476..2d03300eaf 100644 --- a/sub/find_subfiles.c +++ b/sub/find_subfiles.c @@ -156,12 +156,12 @@ static void append_dir_subtitles(struct mpv_global *global, if (!prio && bstrcmp(tmp_fname_trim, f_fname_trim) == 0) prio = 3; // matches the movie name if (!prio && bstr_find(tmp_fname_trim, f_fname_trim) >= 0 - && opts->sub_match_fuzziness >= 1) + && opts->sub_auto >= 1) prio = 2; // contains the movie name if (!prio) { // doesn't contain the movie name // don't try in the mplayer subtitle directory - if (!limit_fuzziness && opts->sub_match_fuzziness >= 2) { + if (!limit_fuzziness && opts->sub_auto >= 2) { prio = 1; } } |