Commit a4385eef authored by Laurent Aimar's avatar Laurent Aimar

* 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 ;)
parent 01d4b422
...@@ -48,6 +48,13 @@ demux_t *__demux2_New( vlc_object_t *p_obj, ...@@ -48,6 +48,13 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
p_demux->psz_demux = strdup( psz_demux ); p_demux->psz_demux = strdup( psz_demux );
p_demux->psz_path = strdup( psz_path ); 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'", msg_Dbg( p_obj, "demux2_New: access='%s' demux='%s' path='%s'",
p_demux->psz_access, p_demux->psz_demux, p_demux->psz_path ); p_demux->psz_access, p_demux->psz_demux, p_demux->psz_path );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment