mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
audiosink: free the ringbuffer when going to NULL
Unparent and free the ringbuffer when going to NULL, like we do with the audiosrc element. We can do this now because we correctly manage the time jumping back to 0.
This commit is contained in:
parent
e4492c24ea
commit
57a13f28de
1 changed files with 0 additions and 2 deletions
|
@ -1804,12 +1804,10 @@ 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;
|
||||
|
|
Loading…
Reference in a new issue