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
This commit is contained in:
Josep Torra 2016-08-09 11:39:53 +02:00
parent c95f2e5b23
commit 970ea49d30

View file

@ -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);
}