diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/teletextdec/gstteletextdec.c | 4 |
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) |