summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-04-17 10:55:08 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-04-17 11:03:32 +0200
commit32904de58fcc25a25f869582676021ef0d09b639 (patch)
tree3f4f037d5254a337924e883b5edbe30765c90148
parentd927114ef85f41526cf749b6d3e08f5869c4c39b (diff)
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
-rw-r--r--gst-libs/gst/audio/gstbaseaudiosink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c
index 768b042e0..c46bc7f04 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;