summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <amorales@flumotion.com>2010-09-09 16:41:32 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-05-23 15:17:41 +0200
commitfb98c55f67d77499aa6f0dd5749206e267aac05f (patch)
tree670989cca69889181e9a21af18ba5728e7c33484
parent126a98d967275b5f4ed0c09e5ff9c8e75bafd09f (diff)
teletextdec: add some data in the preroll buffer
https://bugzilla.gnome.org/show_bug.cgi?id=619739
-rw-r--r--ext/teletextdec/gstteletextdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c
index 05c9d2986..ad2c2f811 100644
--- a/ext/teletextdec/gstteletextdec.c
+++ b/ext/teletextdec/gstteletextdec.c
@@ -942,7 +942,9 @@ gst_teletextdec_push_preroll_buffer (GstTeletextDec * teletext)
goto beach;
}
- buf = gst_buffer_new ();
+ buf = gst_buffer_new_and_alloc (1);
+ GST_BUFFER_DATA (buf) = GST_BUFFER_MALLOCDATA (buf) =
+ (guint8 *) g_strdup ("");
gst_buffer_set_caps (buf, out_caps);
ret = gst_pad_push (teletext->srcpad, buf);
if (ret != GST_FLOW_OK)