In cases where an invalid input packet is submitted to the decoder we emit a
warning but reporting the flow error upstream would also be useful. This came up
with a case were the application interacts directly with the decoder, using a
mechanism similar to GstHarness.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3463>
send_packet_failed:
{
- GST_WARNING_OBJECT (ffmpegdec, "Failed to send data for decoding");
+ GST_VIDEO_DECODER_ERROR (decoder, 1, STREAM, DECODE,
+ ("Failed to send data for decoding"), ("Invalid input packet"), ret);
goto done;
}
}