faad: only discard frame once upon decoding error

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=679886
This commit is contained in:
Mark Nauwelaerts 2012-07-20 16:43:19 +02:00
parent 62e5afb95e
commit 9e28b769e8

View file

@ -831,8 +831,6 @@ 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_frame (dec, NULL, 1);
goto out;
}
negotiation_failed: