GNOME Bugzilla – Bug 94463
gst_element_set_scheduler() doesn't ref passed object
Last modified: 2004-12-22 21:47:04 UTC
gst_element_set_scheduler() doesn't ref the passed object which makes it hard to wrap Gstreamer and will lead to inconsistencies within Gstreamer.
Fixed in CVS
Hm, as I can see in current CVS, "sched" is unreferenced in gst_element_dispose(). But I think gst_scheduler_element_remove(element, element->sched) needs to be called before, to allow for the scheduler to clean up its lists "clock_providers" and "clock_receivers" and its data field "parent".
Is there a document describing somewhere what object holds references to what other objects (and when)? If not we should really get such a document somewhere.
The scheduler should be properly updated when the element is removed from the bin.