Commit b552c61c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

PS: assign demux callbacks after possible fail

parent b243e3b6
......@@ -127,11 +127,12 @@ static int OpenCommon( vlc_object_t *p_this, bool b_force )
}
/* Fill p_demux field */
p_demux->pf_demux = Demux;
p_demux->pf_control = Control;
p_demux->p_sys = p_sys = malloc( sizeof( demux_sys_t ) );
if( !p_sys ) return VLC_ENOMEM;
p_demux->pf_demux = Demux;
p_demux->pf_control = Control;
/* Init p_sys */
p_sys->i_mux_rate = 0;
p_sys->i_scr = -1;
......
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