teletext: Fix initialization

We always ended up erroring on the first page otherwise

Conflicts:

	ext/teletextdec/gstteletextdec.c
This commit is contained in:
Edward Hervey 2012-06-18 11:36:15 +02:00 committed by Sebastian Dröge
parent a931620208
commit e3b2886b01

View 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;