mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
8a2dbeb1ef
commit
f240d34c7e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue