gst/gstbin.c: Clean up references to the clock provider when disposed or when handlin...
authorJan Schmidt <thaytan@mad.scientist.com>
Fri, 27 Jan 2006 01:48:37 +0000 (01:48 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Fri, 27 Jan 2006 01:48:37 +0000 (01:48 +0000)
commit6ef1fd2c5362d71b6f55f19f589fed625905bea8
treef15b6c50abe78362b251410343f797c2ff525331
parent3f56b0cbcb77629d17a1023f5d59eb97ed373509
gst/gstbin.c: Clean up references to the clock provider when disposed or when handling a clock-lost message from it.

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_dispose), (gst_bin_provide_clock_func),
(gst_bin_remove_func), (gst_bin_handle_message_func),
(bin_query_duration_fold), (bin_query_generic_fold):
Clean up references to the clock provider when disposed or when
handling a clock-lost message from it.

Unref sinks when performing a query via gst_iterator_fold, as the
gst_bin_iterate_sinks iterator refs each item. (Fixes #323874)

* gst/gstclock.c: (gst_clock_class_init), (gst_clock_dispose),
(gst_clock_set_master):
Drop our reference to the master clock, if any, when we are disposed.

* gst/gsttypefindfactory.c: (gst_type_find_factory_dispose):
Chain up in dispose.
ChangeLog
gst/gstbin.c
gst/gstclock.c
gst/gsttypefindfactory.c