mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
faad: discard frame upon decoding error
This commit is contained in:
parent
8b73baeced
commit
120031ab55
1 changed files with 2 additions and 0 deletions
|
@ -806,6 +806,8 @@ decode_failed:
|
||||||
{
|
{
|
||||||
GST_AUDIO_DECODER_ERROR (faad, 1, STREAM, DECODE, (NULL),
|
GST_AUDIO_DECODER_ERROR (faad, 1, STREAM, DECODE, (NULL),
|
||||||
("decoding error: %s", faacDecGetErrorMessage (info.error)), ret);
|
("decoding error: %s", faacDecGetErrorMessage (info.error)), ret);
|
||||||
|
if (ret == GST_FLOW_OK)
|
||||||
|
gst_audio_decoder_finish_frme (dec, NULL, 1);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
negotiation_failed:
|
negotiation_failed:
|
||||||
|
|
Loading…
Reference in a new issue