From 05985247d13d2216f03f57d37dca61aaa4d2a844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 25 Nov 2024 12:27:03 +0200 Subject: [PATCH] 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: --- .../gst-plugins-base/gst/playback/gststreamsynchronizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c b/subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c index 6490958f89..607ee6632f 100644 --- a/subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c +++ b/subprojects/gst-plugins-base/gst/playback/gststreamsynchronizer.c @@ -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)) {