summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-10-30 10:19:59 +0000
committerWim Taymans <wim.taymans@collabora.co.uk>2012-10-30 10:51:34 +0000
commitb4e122e3af3d9e5c1906af48fa857e45f9d49648 (patch)
treee359239031c83b52543577fd227d5cbaba16b7c1
parenta64a5bb48d630ec3b0badd2d77b86fa31f76a21b (diff)
downloadgstreamer-plugins-base-b4e122e3af3d9e5c1906af48fa857e45f9d49648.tar.gz
audioringbuffer: reset spec on _release
Reset the caps and the audioinfo when releasing the ringbuffer. Fixed a bug with reusing pulsesink.
-rw-r--r--gst-libs/gst/audio/gstringbuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstringbuffer.c b/gst-libs/gst/audio/gstringbuffer.c
index 50693045c..1db5e8bc9 100644
--- a/gst-libs/gst/audio/gstringbuffer.c
+++ b/gst-libs/gst/audio/gstringbuffer.c
@@ -924,6 +924,8 @@ gst_ring_buffer_release (GstRingBuffer * 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: