[vlc-commits] zvbi: set pf_decode_sub at the end

Ilkka Ollakka git at videolan.org
Tue Nov 12 17:00:17 CET 2013


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Nov 12 15:29:17 2013 +0200| [716e4172a8613e44b113e1ae3d0ad94489fb3c57] | committer: Ilkka Ollakka

zvbi: set pf_decode_sub at the end

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=716e4172a8613e44b113e1ae3d0ad94489fb3c57
---

 modules/codec/zvbi.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/zvbi.c b/modules/codec/zvbi.c
index 4c4ecc0..1bd5f6b 100644
--- a/modules/codec/zvbi.c
+++ b/modules/codec/zvbi.c
@@ -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;
 }
 



More information about the vlc-commits mailing list