summaryrefslogtreecommitdiffstats
path: root/options/options.h
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 /options/options.h
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 'options/options.h')
-rw-r--r--options/options.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/options/options.h b/options/options.h
index 374649888e..208431110e 100644
--- a/options/options.h
+++ b/options/options.h
@@ -4,6 +4,7 @@
#include <stdbool.h>
#include <stdint.h>
#include "m_option.h"
+#include "common/common.h"
typedef struct mp_vo_opts {
struct m_obj_settings *video_driver_list, *vo_defs;
@@ -170,15 +171,9 @@ typedef struct MPOpts {
int ignore_path_in_watch_later_config;
int pause;
int keep_open;
- int audio_id;
- int video_id;
- int sub_id;
- int sub2_id;
- int audio_id_ff;
- int video_id_ff;
- int sub_id_ff;
- char **audio_lang;
- char **sub_lang;
+ int stream_id[2][STREAM_TYPE_COUNT];
+ int stream_id_ff[STREAM_TYPE_COUNT];
+ char **stream_lang[STREAM_TYPE_COUNT];
int audio_display;
char **display_tags;
int sub_visibility;