Original commit message from CVS:
* gst/playback/gstdecodebin2.c:
Dont leak ghostpad. Fixes #475451.
+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:
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;