streamsynchronizer: use GAP event to trigger preroll

... rather than an empty buffer
This commit is contained in:
Mark Nauwelaerts 2012-09-05 16:59:12 +02:00
parent 36e78af5bf
commit d3a0269695

View file

@ -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);