summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-22 21:00:24 +0200
committerwm4 <wm4@nowhere>2015-05-22 21:00:24 +0200
commitae46833836453b7fc64f2cff9cb69d6cfd73f947 (patch)
treeb7ecb83b01279fc427348025f158d9fa14d7bd25 /sub
parenta7c831f36d17fae13ef441a8f56281557cccd401 (diff)
downloadmpv-ae46833836453b7fc64f2cff9cb69d6cfd73f947.tar.bz2
mpv-ae46833836453b7fc64f2cff9cb69d6cfd73f947.tar.xz
player: use an array for stream ID options and such
This makes the code slightly more generic.
Diffstat (limited to 'sub')
-rw-r--r--sub/find_subfiles.c4
1 files changed, 2 insertions, 2 deletions
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;
}