From 32904de58fcc25a25f869582676021ef0d09b639 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 17 Apr 2009 10:55:08 +0200 Subject: [PATCH] baseaudiosink: don't unparent the ringbuffer when going to NULL, don't unparent the ringbuffer because we don't support going back to 0 very well yet. Fixes #579203 --- gst-libs/gst/audio/gstbaseaudiosink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index 768b042..c46bc7f 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -1789,10 +1789,12 @@ gst_base_audio_sink_change_state (GstElement * element, gst_ring_buffer_activate (sink->ringbuffer, FALSE); gst_ring_buffer_release (sink->ringbuffer); gst_ring_buffer_close_device (sink->ringbuffer); +#if 0 GST_OBJECT_LOCK (sink); gst_object_unparent (GST_OBJECT_CAST (sink->ringbuffer)); sink->ringbuffer = NULL; GST_OBJECT_UNLOCK (sink); +#endif break; default: break; -- 2.7.4