gst-libs/gst/audio/gstbaseaudiosink.c: Since we _parent the ringbuffer, we also need...
authorWim Taymans <wim.taymans@gmail.com>
Wed, 22 Mar 2006 12:33:09 +0000 (12:33 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 22 Mar 2006 12:33:09 +0000 (12:33 +0000)
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
gst-libs/gst/audio/gstbaseaudiosink.c

index 9854dc2..c36d80d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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),
        (stop_seek), (scrub_toggle_cb), (main):
        Add scrub checkbox.
index fdbd951..bb445e5 100644 (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);
 }