]> git.sesse.net Git - vlc/commitdiff
mpegvideo: move pf_get/pf_packetize at the end
authorIlkka Ollakka <ileoo@videolan.org>
Sat, 15 Mar 2014 15:16:12 +0000 (17:16 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 15 Jul 2014 13:07:19 +0000 (16:07 +0300)
modules/packetizer/mpegvideo.c

index 2d21fa720fda0e0637ee13ba1415cd244df4fed3..f9b12f0f76d211f25bacf42b6765ca63e4851597 100644 (file)
@@ -159,8 +159,6 @@ static int Open( vlc_object_t *p_this )
     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->pf_packetize = Packetize;
-    p_dec->pf_get_cc = GetCc;
 
     p_dec->p_sys = p_sys = malloc( sizeof( decoder_sys_t ) );
     if( !p_dec->p_sys )
@@ -210,6 +208,9 @@ static int Open( vlc_object_t *p_this )
     p_sys->i_cc_flags = 0;
     cc_Init( &p_sys->cc );
 
+    p_dec->pf_packetize = Packetize;
+    p_dec->pf_get_cc = GetCc;
+
     return VLC_SUCCESS;
 }