Commit 61da5a10 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avformat: set pf_* after everything else in init

parent 18fea8c1
......@@ -106,11 +106,6 @@ int OpenMux( vlc_object_t *p_this )
return VLC_EGENERIC;
}
/* Fill p_mux fields */
p_mux->pf_control = Control;
p_mux->pf_addstream = AddStream;
p_mux->pf_delstream = DelStream;
p_mux->pf_mux = Mux;
p_mux->p_sys = p_sys = malloc( sizeof( sout_mux_sys_t ) );
if( !p_sys )
return VLC_ENOMEM;
......@@ -136,6 +131,12 @@ int OpenMux( vlc_object_t *p_this )
p_sys->b_error = false;
p_sys->i_initial_dts = 0;
/* Fill p_mux fields */
p_mux->pf_control = Control;
p_mux->pf_addstream = AddStream;
p_mux->pf_delstream = DelStream;
p_mux->pf_mux = Mux;
return VLC_SUCCESS;
}
......
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