mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
audioringbuffer: reset spec on _release
Reset the caps and the audioinfo when releasing the ringbuffer. Fixed a bug with reusing pulsesink.
This commit is contained in:
parent
b1318c86e8
commit
5f44303925
1 changed files with 2 additions and 0 deletions
|
@ -669,6 +669,8 @@ gst_audio_ring_buffer_release (GstAudioRingBuffer * buf)
|
|||
|
||||
g_free (buf->empty_seg);
|
||||
buf->empty_seg = NULL;
|
||||
gst_caps_replace (&buf->spec.caps, NULL);
|
||||
gst_audio_info_init (&buf->spec.info);
|
||||
GST_DEBUG_OBJECT (buf, "released device");
|
||||
|
||||
done:
|
||||
|
|
Loading…
Reference in a new issue