mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
streamsynchronizer: use GAP event to trigger preroll
... rather than an empty buffer
This commit is contained in:
parent
36e78af5bf
commit
d3a0269695
1 changed files with 3 additions and 2 deletions
|
@ -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
|
/* if EOS, but no data has passed, then send something to replace EOS
|
||||||
* for preroll purposes */
|
* for preroll purposes */
|
||||||
if (!seen_data) {
|
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);
|
gst_object_unref (srcpad);
|
||||||
|
|
Loading…
Reference in a new issue