Commit 1c2fae7f authored by Stefan Kost's avatar Stefan Kost

gst/playback/gstdecodebin2.c: Dont leak ghostpad. Fixes #475451.

Original commit message from CVS:
* gst/playback/gstdecodebin2.c:
Dont leak ghostpad. Fixes #475451.
parent 90594573
2007-11-09 Stefan Kost <ensonic@users.sf.net>
* gst/playback/gstdecodebin2.c:
Dont leak ghostpad. Fixes #475451.
2007-11-09 Wim Taymans <wim.taymans@gmail.com>
* docs/design/design-decodebin.txt:
......@@ -2097,6 +2097,16 @@ gst_decode_group_free (GstDecodeGroup * group)
GST_LOG ("group %p", group);
GROUP_MUTEX_LOCK (group);
/* free ghost pads */
if (group == group->dbin->activegroup) {
for (tmp = group->ghosts; tmp; tmp = g_list_next (tmp))
gst_element_remove_pad (GST_ELEMENT (group->dbin), (GstPad *) tmp->data);
g_list_free (group->ghosts);
group->ghosts = NULL;
}
/* Clear all GstDecodePad */
for (tmp = group->endpads; tmp; tmp = g_list_next (tmp)) {
GstDecodePad *dpad = (GstDecodePad *) tmp->data;
......
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