]> git.sesse.net Git - vlc/commitdiff
zvbi: set pf_decode_sub at the end
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 12 Nov 2013 13:29:17 +0000 (15:29 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 12 Nov 2013 15:39:27 +0000 (17:39 +0200)
modules/codec/zvbi.c

index 4c4ecc0117181b5249471841652dc76a8927c3c3..1bd5f6b20ed8e0b5ac5135851d8aa1ad27a3931b 100644 (file)
@@ -194,7 +194,6 @@ static int Open( vlc_object_t *p_this )
     if( p_dec->fmt_in.i_codec != VLC_CODEC_TELETEXT )
         return VLC_EGENERIC;
 
-    p_dec->pf_decode_sub = Decode;
     p_sys = p_dec->p_sys = calloc( 1, sizeof(decoder_sys_t) );
     if( p_sys == NULL )
         return VLC_ENOMEM;
@@ -261,6 +260,8 @@ static int Open( vlc_object_t *p_this )
         p_dec->fmt_out.video.i_chroma = VLC_CODEC_TEXT;
     else
         p_dec->fmt_out.video.i_chroma = VLC_CODEC_RGBA;
+
+    p_dec->pf_decode_sub = Decode;
     return VLC_SUCCESS;
 }