summaryrefslogtreecommitdiff
path: root/ext/faad
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-02-23 21:16:18 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-02-23 21:18:29 +0100
commit120031ab5520fadebd79bd6e3054a77a5e6f3e64 (patch)
treef6fce112c813cc3f3287189b5122b29ff63f4acd /ext/faad
parent8b73baeced99de22c71fb76b8209ee504edf8f4a (diff)
faad: discard frame upon decoding error
Diffstat (limited to 'ext/faad')
-rw-r--r--ext/faad/gstfaad.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index 4dd73eba8d..30f6dd9f85 100644
--- a/ext/faad/gstfaad.c
+++ b/ext/faad/gstfaad.c
@@ -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: