mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
tee: Set GST_PAD_FLAG_PROXY_CAPS before forwarding sticky events
https://bugzilla.gnome.org/show_bug.cgi?id=752213
This commit is contained in:
parent
8fb4c38ec9
commit
ae57cac090
1 changed files with 1 additions and 1 deletions
|
@ -410,9 +410,9 @@ gst_tee_request_new_pad (GstElement * element, GstPadTemplate * templ,
|
||||||
gst_pad_set_query_function (srcpad, GST_DEBUG_FUNCPTR (gst_tee_src_query));
|
gst_pad_set_query_function (srcpad, GST_DEBUG_FUNCPTR (gst_tee_src_query));
|
||||||
gst_pad_set_getrange_function (srcpad,
|
gst_pad_set_getrange_function (srcpad,
|
||||||
GST_DEBUG_FUNCPTR (gst_tee_src_get_range));
|
GST_DEBUG_FUNCPTR (gst_tee_src_get_range));
|
||||||
|
GST_OBJECT_FLAG_SET (srcpad, GST_PAD_FLAG_PROXY_CAPS);
|
||||||
/* Forward sticky events to the new srcpad */
|
/* Forward sticky events to the new srcpad */
|
||||||
gst_pad_sticky_events_foreach (tee->sinkpad, forward_sticky_events, srcpad);
|
gst_pad_sticky_events_foreach (tee->sinkpad, forward_sticky_events, srcpad);
|
||||||
GST_OBJECT_FLAG_SET (srcpad, GST_PAD_FLAG_PROXY_CAPS);
|
|
||||||
gst_element_add_pad (GST_ELEMENT_CAST (tee), srcpad);
|
gst_element_add_pad (GST_ELEMENT_CAST (tee), srcpad);
|
||||||
|
|
||||||
return srcpad;
|
return srcpad;
|
||||||
|
|
Loading…
Reference in a new issue