mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
urisourcebin: Activate pad before transferring sticky events
Otherwise they get refused since the pad is flushing Fixes #2384 for good Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4226>
This commit is contained in:
parent
e794fcaa1c
commit
cf3adbcfb3
1 changed files with 1 additions and 1 deletions
|
@ -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 !");
|
||||
|
|
Loading…
Reference in a new issue