baseaudio: avoid taking extra ref on sink/src
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 7 Sep 2010 16:09:12 +0000 (18:09 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 7 Sep 2010 16:12:38 +0000 (18:12 +0200)
commit24226284b89b65d7c10784ef9eb5508210c5a1e7
treedbd28ae20c5b45bf455a473f8575fa1231aef0d4
parentc7972692d3073a5d06a42bb8adadded96db8cc40
baseaudio: avoid taking extra ref on sink/src

Don't take an extra ref on the sink and source because that creates a reference
cycle. Instead, use the invalidate method of the clock when the sink and source
are freed. This way, we don't call into the time function anymore after the
objects are disposed.
gst-libs/gst/audio/gstbaseaudiosink.c
gst-libs/gst/audio/gstbaseaudiosrc.c