]> git.sesse.net Git - vlc/commitdiff
Logical fix: add packetizer in PackitizerOpen()
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 31 Oct 2004 15:51:24 +0000 (15:51 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 31 Oct 2004 15:51:24 +0000 (15:51 +0000)
modules/codec/spudec/spudec.c

index 72fd0910451158445bb293e5b79c8529841ca577..1f758f8262c88972731450b05ee8fce15ea57ccf 100644 (file)
@@ -82,7 +82,7 @@ static int DecoderOpen( vlc_object_t *p_this )
     es_format_Init( &p_dec->fmt_out, SPU_ES, VLC_FOURCC( 's','p','u',' ' ) );
 
     p_dec->pf_decode_sub = Decode;
-    p_dec->pf_packetize  = Packetize;
+    p_dec->pf_packetize  = NULL;
 
     return VLC_SUCCESS;
 }
@@ -101,6 +101,7 @@ static int PacketizerOpen( vlc_object_t *p_this )
     {
         return VLC_EGENERIC;
     }
+    p_dec->pf_packetize  = Packetize;
     p_dec->p_sys->b_packetizer = VLC_TRUE;
     es_format_Copy( &p_dec->fmt_out, &p_dec->fmt_in );
     p_dec->fmt_out.i_codec = VLC_FOURCC( 's','p','u',' ' );