From e3b2886b0178b8695278e9ba85344f3a7dd2ed49 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 18 Jun 2012 11:36:15 +0200 Subject: [PATCH] teletext: Fix initialization We always ended up erroring on the first page otherwise Conflicts: ext/teletextdec/gstteletextdec.c --- ext/teletextdec/gstteletextdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c index e61cba9b1e..8f70712ec1 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;