mulawdec: Unmap input buffer if failing to map the output buffer
authorSebastian Dröge <sebastian@centricular.com>
Thu, 27 Jul 2017 11:21:34 +0000 (14:21 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 27 Jul 2017 11:23:14 +0000 (14:23 +0300)
gst/law/mulaw-decode.c

index 912fb8c..1a70d0b 100644 (file)
@@ -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;