From: Sebastian Dröge Date: Thu, 27 Jul 2017 11:21:34 +0000 (+0300) Subject: mulawdec: Unmap input buffer if failing to map the output buffer X-Git-Tag: 1.16.2~935 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b8d0a294a60e1433ea60731c6ea4e911fc42f1c;p=platform%2Fupstream%2Fgst-plugins-good.git mulawdec: Unmap input buffer if failing to map the output buffer --- diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c index 912fb8c..1a70d0b 100644 --- a/gst/law/mulaw-decode.c +++ b/gst/law/mulaw-decode.c @@ -130,6 +130,7 @@ gst_mulawdec_handle_frame (GstAudioDecoder * dec, GstBuffer * buffer) error_failed_map_output_buffer: gst_buffer_unref (outbuf); + gst_buffer_unmap (buffer, &inmap); error_failed_map_input_buffer: return GST_FLOW_ERROR;