From: Edward Hervey Date: Mon, 18 Jun 2012 09:36:15 +0000 (+0200) Subject: teletext: Fix initialization X-Git-Tag: 1.19.3~507^2~15359 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3b2886b0178b8695278e9ba85344f3a7dd2ed49;p=platform%2Fupstream%2Fgstreamer.git teletext: Fix initialization We always ended up erroring on the first page otherwise Conflicts: ext/teletextdec/gstteletextdec.c --- diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c index e61cba9..8f70712 100644 --- a/ext/teletextdec/gstteletextdec.c +++ b/ext/teletextdec/gstteletextdec.c @@ -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;