Commit 1c66f306 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

utils: Fix proxy_setcaps to only iterate pads of other direction

parent c6f2a947
......@@ -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);
iter = gst_element_iterate_src_pads (element);
g_value_init (&ret, G_TYPE_BOOLEAN);
g_value_set_boolean (&ret, TRUE);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment