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.
This commit is contained in:
Wim Taymans 2006-03-22 12:33:09 +00:00
parent 97a3b710df
commit 747d560fb5
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,10 @@
2006-03-22 Wim Taymans <wim@fluendo.com>
* 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 <wim@fluendo.com>
* tests/examples/seek/seek.c: (end_scrub), (do_seek), (seek_cb),

View file

@ -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);
}