From 94441ed13963356fa25f7e52a12e36387220ebba Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 4 May 2014 10:31:24 +0200 Subject: options: merge ---sub-auto-match with --sub-auto There's no reason why these should be separate. --- sub/find_subfiles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sub') 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; } } -- cgit v1.2.3