Commit 172f9c98 authored by Olivier Crête's avatar Olivier Crête 👻

avviddec: Post error message before returning a flow error

This is required.
parent 4da9692f
...@@ -1490,7 +1490,8 @@ gst_ffmpegviddec_handle_frame (GstVideoDecoder * decoder, ...@@ -1490,7 +1490,8 @@ gst_ffmpegviddec_handle_frame (GstVideoDecoder * decoder,
GST_TIME_ARGS (frame->pts), GST_TIME_ARGS (frame->duration)); GST_TIME_ARGS (frame->pts), GST_TIME_ARGS (frame->duration));
if (!gst_buffer_map (frame->input_buffer, &minfo, GST_MAP_READ)) { if (!gst_buffer_map (frame->input_buffer, &minfo, GST_MAP_READ)) {
GST_ERROR_OBJECT (ffmpegdec, "Failed to map buffer"); GST_ELEMENT_ERROR (ffmpegdec, STREAM, DECODE, ("Decoding problem"),
("Failed to map buffer for reading"));
return GST_FLOW_ERROR; return GST_FLOW_ERROR;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment