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
This commit is contained in:
Ognyan Tonchev 2013-06-17 16:34:26 +02:00 committed by Wim Taymans
parent 8a2dbeb1ef
commit f240d34c7e

View file

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