streamsynchronizer: Only send GAP events out of source pads

If streamsynchronizer is waiting on the stream's sinkpad and srcpad at the same
time, it can happen that the GAP event is otherwise sent out of the sinkpad,
which is in the wrong direction.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7950>
This commit is contained in:
Sebastian Dröge 2024-11-25 12:27:03 +02:00 committed by GStreamer Marge Bot
parent 13f2b7dd74
commit 05985247d1

View file

@ -444,7 +444,7 @@ gst_stream_synchronizer_wait (GstStreamSynchronizer * self, GstPad * pad)
break;
}
if (stream->send_gap_event) {
if (stream->send_gap_event && GST_PAD_IS_SRC (pad)) {
GstEvent *event;
if (!GST_CLOCK_TIME_IS_VALID (stream->segment.position)) {