Commit 45aa11da authored by Ilkka Ollakka's avatar Ilkka Ollakka

mpegvideo: move pf_get/pf_packetize at the end

parent 0e9f2588
...@@ -159,8 +159,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -159,8 +159,6 @@ static int Open( vlc_object_t *p_this )
es_format_Init( &p_dec->fmt_out, VIDEO_ES, VLC_CODEC_MPGV ); es_format_Init( &p_dec->fmt_out, VIDEO_ES, VLC_CODEC_MPGV );
p_dec->fmt_out.i_original_fourcc = p_dec->fmt_in.i_original_fourcc; p_dec->fmt_out.i_original_fourcc = p_dec->fmt_in.i_original_fourcc;
p_dec->pf_packetize = Packetize;
p_dec->pf_get_cc = GetCc;
p_dec->p_sys = p_sys = malloc( sizeof( decoder_sys_t ) ); p_dec->p_sys = p_sys = malloc( sizeof( decoder_sys_t ) );
if( !p_dec->p_sys ) if( !p_dec->p_sys )
...@@ -210,6 +208,9 @@ static int Open( vlc_object_t *p_this ) ...@@ -210,6 +208,9 @@ static int Open( vlc_object_t *p_this )
p_sys->i_cc_flags = 0; p_sys->i_cc_flags = 0;
cc_Init( &p_sys->cc ); cc_Init( &p_sys->cc );
p_dec->pf_packetize = Packetize;
p_dec->pf_get_cc = GetCc;
return VLC_SUCCESS; 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