From 77a7aa2c41d4d4be2eb2ad099b201d3fdd8f3cc7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 10 Jun 2014 20:46:15 +0200 Subject: stream_cdda: remove global option variables --- options/options.c | 6 +++--- options/options.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'options') diff --git a/options/options.c b/options/options.c index 466049a91c..509a408537 100644 --- a/options/options.c +++ b/options/options.c @@ -46,7 +46,6 @@ /* defined in demux: */ extern const m_option_t demux_rawaudio_opts[]; extern const m_option_t demux_rawvideo_opts[]; -extern const m_option_t cdda_opts[]; extern int sws_flags; @@ -64,6 +63,7 @@ static void print_help(struct mp_log *log) extern const struct m_sub_options tv_params_conf; extern const struct m_sub_options stream_pvr_conf; +extern const struct m_sub_options stream_cdda_conf; extern const m_option_t dvbin_opts_conf[]; extern const m_option_t lavfdopts_conf[]; @@ -170,7 +170,6 @@ const m_option_t mp_opts[] = { ({"no", 0})), OPT_INTRANGE("cache-pause-restart", stream_cache_unpause, 0, 0, 0x7fffffff), - {"cdrom-device", &cdrom_device, CONF_TYPE_STRING, 0, 0, 0, NULL}, #if HAVE_DVDREAD || HAVE_DVDNAV {"dvd-device", &dvd_device, CONF_TYPE_STRING, 0, 0, 0, NULL}, {"dvd-speed", &dvd_speed, CONF_TYPE_INT, 0, 0, 0, NULL}, @@ -231,7 +230,8 @@ const m_option_t mp_opts[] = { OPT_FLAG("quvi-fetch-subtitles", quvi_fetch_subtitles, 0), #if HAVE_CDDA - { "cdda", (void *)&cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, + OPT_SUBSTRUCT("cdda", stream_cdda_opts, stream_cdda_conf, 0), + OPT_STRING("cdrom-device", cdrom_device, 0), #endif // demuxer.c - select audio/sub file/demuxer diff --git a/options/options.h b/options/options.h index ec572fe1d1..09567db064 100644 --- a/options/options.h +++ b/options/options.h @@ -240,6 +240,9 @@ typedef struct MPOpts { struct tv_params *tv_params; struct pvr_params *stream_pvr_opts; + struct cdda_params *stream_cdda_opts; + + char *cdrom_device; struct lavc_param { int fast; -- cgit v1.2.3