utils: Fix proxy_setcaps to only iterate pads of other direction

This commit is contained in:
Sebastian Dröge 2009-12-08 16:40:57 +01:00
parent c6f2a94777
commit 1c66f306d6

View file

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