From 970ea49d30d28a3f03e67b36a07d91a6c4649550 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Tue, 9 Aug 2016 11:39:53 +0200 Subject: [PATCH] decodebin: forward sticky events on multiqueue When connecting a demuxer through a multiqueue ensure to copy sticky events in order to allow the following factory being properly checked that it is functional. https://bugzilla.gnome.org/show_bug.cgi?id=769580 --- gst/playback/gstdecodebin2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index 4fae67b..89ed6a9 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -2125,6 +2125,8 @@ connect_pad (GstDecodeBin * dbin, GstElement * src, GstDecodePad * dpad, if (!(mqpad = gst_decode_group_control_demuxer_pad (chain->parent, pad))) goto beach; src = chain->parent->multiqueue; + /* Forward sticky events to mq src pad to allow factory initialization */ + gst_pad_sticky_events_foreach (pad, copy_sticky_events, mqpad); pad = mqpad; decode_pad_set_target (dpad, pad); } -- 2.7.4