teletext: Fix initialization
authorEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 18 Jun 2012 09:36:15 +0000 (11:36 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 19 Jun 2012 09:50:13 +0000 (10:50 +0100)
We always ended up erroring on the first page otherwise

Conflicts:

ext/teletextdec/gstteletextdec.c

ext/teletextdec/gstteletextdec.c

index e61cba9b1eb21bf71b6f9240de76503a46f60d93..8f70712ec1e7d5f46b968049c7401b33464422cb 100644 (file)
@@ -288,6 +288,8 @@ gst_teletextdec_init (GstTeletextDec * teletext, GstTeletextDecClass * klass)
 
   teletext->frame = g_new0 (GstTeletextFrame, 1);
   teletext->frame->sliced_begin = g_new (vbi_sliced, MAX_SLICES);
+  teletext->frame->current_slice = teletext->frame->sliced_begin;
+  teletext->frame->sliced_end = teletext->frame->sliced_begin + MAX_SLICES;
 
   teletext->last_ts = 0;