summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOgnyan Tonchev <ognyan@axis.com>2013-06-17 16:34:26 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2013-06-17 16:34:26 +0200
commitf240d34c7e611eb5233c62bcf5c19d6e3389e6af (patch)
treecba6b308a0b8b1f9647515006ca63858951abc34
parent8a2dbeb1eff9db1405146303c88c89e554b91335 (diff)
audiobasesrc: add 2 missing gst_buffer_unmap () calls
There are 2 missing calls to gst_buffer_unmap () in the error handling in create (). Fixes https://bugzilla.gnome.org/show_bug.cgi?id=702467
-rw-r--r--gst-libs/gst/audio/gstaudiobasesrc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstaudiobasesrc.c b/gst-libs/gst/audio/gstaudiobasesrc.c
index bd85d8009..621c405d3 100644
--- a/gst-libs/gst/audio/gstaudiobasesrc.c
+++ b/gst-libs/gst/audio/gstaudiobasesrc.c
@@ -1065,12 +1065,14 @@ alloc_failed:
}
stopped:
{
+ gst_buffer_unmap (buf, &info);
gst_buffer_unref (buf);
GST_DEBUG_OBJECT (src, "ringbuffer stopped");
return GST_FLOW_FLUSHING;
}
got_error:
{
+ gst_buffer_unmap (buf, &info);
gst_buffer_unref (buf);
GST_DEBUG_OBJECT (src, "ringbuffer was in error state, bailing out");
return GST_FLOW_ERROR;