From a4385eef49a66fb51619e210ecc1a0a3c6a95fbd Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sun, 8 Aug 2004 01:58:59 +0000 Subject: [PATCH] * demux: another way to break your config file, or, --demux is now taken into acount. (to make bigben happy, being able to do :demux=dump ;) --- src/input/demux.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/input/demux.c b/src/input/demux.c index b90f83221b..b8fb032201 100644 --- a/src/input/demux.c +++ b/src/input/demux.c @@ -48,6 +48,13 @@ demux_t *__demux2_New( vlc_object_t *p_obj, p_demux->psz_demux = strdup( psz_demux ); p_demux->psz_path = strdup( psz_path ); + /* Take into account "demux" to be able to do :demux=demuxdump */ + if( *p_demux->psz_demux == '\0' ) + { + free( p_demux->psz_demux ); + p_demux->psz_demux = var_GetString( p_obj, "demux" ); + } + msg_Dbg( p_obj, "demux2_New: access='%s' demux='%s' path='%s'", p_demux->psz_access, p_demux->psz_demux, p_demux->psz_path ); -- 2.39.2