mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
avviddec: Report flow error when decoder refused packet
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>
This commit is contained in:
parent
fa863b2b7f
commit
090cf943ed
1 changed files with 2 additions and 1 deletions
|
@ -2164,7 +2164,8 @@ done:
|
|||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue