From 5f44303925468413c7dbf8150cda297c8867ced3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 Oct 2012 10:19:59 +0000 Subject: [PATCH] audioringbuffer: reset spec on _release Reset the caps and the audioinfo when releasing the ringbuffer. Fixed a bug with reusing pulsesink. --- gst-libs/gst/audio/gstaudioringbuffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/audio/gstaudioringbuffer.c b/gst-libs/gst/audio/gstaudioringbuffer.c index 7960c9d..dcc0d5a 100644 --- a/gst-libs/gst/audio/gstaudioringbuffer.c +++ b/gst-libs/gst/audio/gstaudioringbuffer.c @@ -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: -- 2.7.4