From d3a0269695a49e221d688faefdef763fe1e4ac82 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 5 Sep 2012 16:59:12 +0200 Subject: [PATCH] streamsynchronizer: use GAP event to trigger preroll ... rather than an empty buffer --- gst/playback/gststreamsynchronizer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/playback/gststreamsynchronizer.c b/gst/playback/gststreamsynchronizer.c index 14a7a77a64..7510f15f61 100644 --- a/gst/playback/gststreamsynchronizer.c +++ b/gst/playback/gststreamsynchronizer.c @@ -451,9 +451,10 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent, /* if EOS, but no data has passed, then send something to replace EOS * for preroll purposes */ if (!seen_data) { - GstBuffer *buf = gst_buffer_new (); + GstEvent *event; - gst_pad_push (srcpad, buf); + event = gst_event_new_gap (0, 0); + gst_pad_push_event (srcpad, event); } } gst_object_unref (srcpad);