From ae46833836453b7fc64f2cff9cb69d6cfd73f947 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 22 May 2015 21:00:24 +0200 Subject: player: use an array for stream ID options and such This makes the code slightly more generic. --- 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 d016b1f625..aa0a181f40 100644 --- a/sub/find_subfiles.c +++ b/sub/find_subfiles.c @@ -142,11 +142,11 @@ static void append_dir_subtitles(struct mpv_global *global, int fuzz = -1; switch (type) { case STREAM_SUB: - langs = opts->sub_lang; + langs = opts->stream_lang[type]; fuzz = opts->sub_auto; break; case STREAM_AUDIO: - langs = opts->audio_lang; + langs = opts->stream_lang[type]; fuzz = opts->audiofile_auto; break; } -- cgit v1.2.3