mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
bfe1cf9926
commit
a362b844f8
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue