mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
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
This commit is contained in:
parent
d927114ef8
commit
32904de58f
1 changed files with 2 additions and 0 deletions
|
@ -1789,10 +1789,12 @@ gst_base_audio_sink_change_state (GstElement * element,
|
||||||
gst_ring_buffer_activate (sink->ringbuffer, FALSE);
|
gst_ring_buffer_activate (sink->ringbuffer, FALSE);
|
||||||
gst_ring_buffer_release (sink->ringbuffer);
|
gst_ring_buffer_release (sink->ringbuffer);
|
||||||
gst_ring_buffer_close_device (sink->ringbuffer);
|
gst_ring_buffer_close_device (sink->ringbuffer);
|
||||||
|
#if 0
|
||||||
GST_OBJECT_LOCK (sink);
|
GST_OBJECT_LOCK (sink);
|
||||||
gst_object_unparent (GST_OBJECT_CAST (sink->ringbuffer));
|
gst_object_unparent (GST_OBJECT_CAST (sink->ringbuffer));
|
||||||
sink->ringbuffer = NULL;
|
sink->ringbuffer = NULL;
|
||||||
GST_OBJECT_UNLOCK (sink);
|
GST_OBJECT_UNLOCK (sink);
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue