mulawdec: Unmap input buffer if failing to map the output buffer

This commit is contained in:
Sebastian Dröge 2017-07-27 14:21:34 +03:00
parent e3f6b9f367
commit 4b8d0a294a

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