gst-plugins-bad: faad: discard frame upon decoding error

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Thu Feb 23 12:40:36 PST 2012


Module: gst-plugins-bad
Branch: master
Commit: 120031ab5520fadebd79bd6e3054a77a5e6f3e64
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=120031ab5520fadebd79bd6e3054a77a5e6f3e64

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Thu Feb 23 21:16:18 2012 +0100

faad: discard frame upon decoding error

---

 ext/faad/gstfaad.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c
index 4dd73eb..30f6dd9 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:



More information about the gstreamer-commits mailing list