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. --- options/options.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'options/options.h') 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 #include #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; -- cgit v1.2.3