gstelement: Start over if subclass removed the next pad too

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=677818
This commit is contained in:
Matej Knopp 2012-06-10 12:41:12 -04:00 committed by Wim Taymans
parent bfe1cf9926
commit a362b844f8

View file

@ -2851,6 +2851,10 @@ gst_element_dispose (GObject * object)
GST_CAT_DEBUG_OBJECT (GST_CAT_ELEMENT_PADS, element,
"removing request pad %s:%s", GST_DEBUG_PAD_NAME (pad));
oclass->release_pad (element, pad);
/* in case the release_pad function removed the next pad too */
if (walk && g_list_position (element->pads, walk) == -1)
walk = element->pads;
}
}
/* remove the remaining pads */