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
@ -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…
x
Reference in New Issue
Block a user