From cf3adbcfb300745f8e9e49e8355a909dd82ae6a7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 20 Mar 2023 11:53:35 +0100 Subject: [PATCH] urisourcebin: Activate pad before transferring sticky events Otherwise they get refused since the pad is flushing Fixes #2384 for good Part-of: --- subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c index d612935534..a37653030d 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c @@ -1329,10 +1329,10 @@ expose_output_pad (GstURISourceBin * urisrc, GstPad * pad) target = gst_ghost_pad_get_target (GST_GHOST_PAD (pad)); + gst_pad_set_active (pad, TRUE); gst_pad_sticky_events_foreach (target, copy_sticky_events, pad); gst_object_unref (target); - gst_pad_set_active (pad, TRUE); GST_URI_SOURCE_BIN_LOCK (urisrc); if (!urisrc->activated) { GST_DEBUG_OBJECT (urisrc, "Not fully activated, adding pad once PAUSED !");