From 4b8d0a294a60e1433ea60731c6ea4e911fc42f1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 27 Jul 2017 14:21:34 +0300 Subject: [PATCH] mulawdec: Unmap input buffer if failing to map the output buffer --- gst/law/mulaw-decode.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.7.4