From 747d560fb5dc07d5c0cf1493262a7b7ee0cb502a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 22 Mar 2006 12:33:09 +0000 Subject: [PATCH] gst-libs/gst/audio/gstbaseaudiosink.c: Since we _parent the ringbuffer, we also need to _unparent instead of a plain ... Original commit message from CVS: * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_dispose): Since we _parent the ringbuffer, we also need to _unparent instead of a plain _unref. --- ChangeLog | 7 +++++++ gst-libs/gst/audio/gstbaseaudiosink.c | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9854dc230f..c36d80d5b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-03-22 Wim Taymans + + * gst-libs/gst/audio/gstbaseaudiosink.c: + (gst_base_audio_sink_dispose): + Since we _parent the ringbuffer, we also need to + _unparent instead of a plain _unref. + 2006-03-22 Wim Taymans * tests/examples/seek/seek.c: (end_scrub), (do_seek), (seek_cb), diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index fdbd951a48..bb445e5b1f 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -166,9 +166,10 @@ gst_base_audio_sink_dispose (GObject * object) gst_object_unref (sink->provided_clock); sink->provided_clock = NULL; - if (sink->ringbuffer) - gst_object_unref (sink->ringbuffer); - sink->ringbuffer = NULL; + if (sink->ringbuffer) { + gst_object_unparent (GST_OBJECT_CAST (sink->ringbuffer)); + sink->ringbuffer = NULL; + } G_OBJECT_CLASS (parent_class)->dispose (object); }