Mercurial > mplayer.hg
diff libmpdemux/demux_rawaudio.c @ 7867:3dc0b71630ff
cleanup config option handling in libmpdemux.
removed overcompilacted m_config_register_options() mess - export the
subconfig structs instead
author | arpi |
---|---|
date | Wed, 23 Oct 2002 17:21:01 +0000 |
parents | f0b933918a22 |
children | 388263fa5a11 |
line wrap: on
line diff
--- a/libmpdemux/demux_rawaudio.c Wed Oct 23 16:52:54 2002 +0000 +++ b/libmpdemux/demux_rawaudio.c Wed Oct 23 17:21:01 2002 +0000 @@ -17,7 +17,7 @@ static int samplesize = 2; static int format = 0x1; // Raw PCM -static config_t demux_rawaudio_opts[] = { +config_t demux_rawaudio_opts[] = { { "on", &use_rawaudio, CONF_TYPE_FLAG, 0,0, 1, NULL }, { "channels", &channels, CONF_TYPE_INT,CONF_RANGE,1,8, NULL }, { "rate", &samplerate, CONF_TYPE_INT,CONF_RANGE,1000,8*48000, NULL }, @@ -26,14 +26,6 @@ {NULL, NULL, 0, 0, 0, 0, NULL} }; -static config_t demux_rawaudio_conf[] = { - { "rawaudio", &demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, - { NULL,NULL, 0, 0, 0, 0, NULL} -}; - -void demux_rwaudio_register_options(m_config_t* cfg) { - m_config_register_options(cfg,demux_rawaudio_conf); -} extern void resync_audio_stream(sh_audio_t *sh_audio);