faad: discard frame upon decoding error

This commit is contained in:
Mark Nauwelaerts 2012-02-23 21:16:18 +01:00
parent 8b73baeced
commit 120031ab55

View file

@ -806,6 +806,8 @@ decode_failed:
{
GST_AUDIO_DECODER_ERROR (faad, 1, STREAM, DECODE, (NULL),
("decoding error: %s", faacDecGetErrorMessage (info.error)), ret);
if (ret == GST_FLOW_OK)
gst_audio_decoder_finish_frme (dec, NULL, 1);
goto out;
}
negotiation_failed: