mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
utils: Fix proxy_setcaps to only iterate pads of other direction
This commit is contained in:
parent
c6f2a94777
commit
1c66f306d6
1 changed files with 5 additions and 1 deletions
|
@ -2799,7 +2799,11 @@ gst_pad_proxy_setcaps (GstPad * pad, GstCaps * caps)
|
|||
if (element == NULL)
|
||||
return FALSE;
|
||||
|
||||
iter = gst_element_iterate_pads (element);
|
||||
/* only iterate the pads in the oposite direction */
|
||||
if (GST_PAD_IS_SRC (pad))
|
||||
iter = gst_element_iterate_sink_pads (element);
|
||||
else
|
||||
iter = gst_element_iterate_src_pads (element);
|
||||
|
||||
g_value_init (&ret, G_TYPE_BOOLEAN);
|
||||
g_value_set_boolean (&ret, TRUE);
|
||||
|
|
Loading…
Reference in a new issue