mulawdec: Handle NULL buffers in handle_frame

https://bugzilla.gnome.org/show_bug.cgi?id=698894
This commit is contained in:
Alexander Schrab 2013-05-21 13:33:59 +02:00 committed by Sebastian Dröge
parent 2361567bae
commit a1df050356

View file

@ -99,6 +99,10 @@ gst_mulawdec_handle_frame (GstAudioDecoder * dec, GstBuffer * buffer)
gsize mulaw_size, linear_size;
GstBuffer *outbuf;
if (!buffer) {
return GST_FLOW_OK;
}
if (!gst_buffer_map (buffer, &inmap, GST_MAP_READ)) {
GST_ERROR ("failed to map input buffer");
goto error_failed_map_input_buffer;
@ -128,7 +132,7 @@ error_failed_map_output_buffer:
gst_buffer_unref (outbuf);
error_failed_map_input_buffer:
return FALSE;
return GST_FLOW_ERROR;
}
static void