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:
Wim Taymans 2012-10-30 10:19:59 +00:00
parent b1318c86e8
commit 5f44303925

View file

@ -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: