[0.11] gst-plugins-ugly: amr: port to 0.11 again

Wim Taymans wtay at kemper.freedesktop.org
Wed Jan 25 04:59:09 PST 2012


Module: gst-plugins-ugly
Branch: 0.11
Commit: cc1e26147dab9c68f1ed20d4447cc3c3421aeab3
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=cc1e26147dab9c68f1ed20d4447cc3c3421aeab3

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Wed Jan 25 13:58:54 2012 +0100

amr: port to 0.11 again

---

 ext/amrnb/amrnbdec.c    |    2 +-
 ext/amrwbdec/amrwbdec.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/amrnb/amrnbdec.c b/ext/amrnb/amrnbdec.c
index 0b9a09c..53c9bf7 100644
--- a/ext/amrnb/amrnbdec.c
+++ b/ext/amrnb/amrnbdec.c
@@ -273,7 +273,7 @@ gst_amrnbdec_parse (GstAudioDecoder * dec, GstAdapter * adapter,
   GST_DEBUG_OBJECT (amrnbdec, "mode %d, block %d", mode, block);
 
   if (block > size)
-    return GST_FLOW_UNEXPECTED;
+    return GST_FLOW_EOS;
 
   *offset = 0;
   *length = block;
diff --git a/ext/amrwbdec/amrwbdec.c b/ext/amrwbdec/amrwbdec.c
index 5a6e73a..49a1ae7 100644
--- a/ext/amrwbdec/amrwbdec.c
+++ b/ext/amrwbdec/amrwbdec.c
@@ -189,7 +189,7 @@ gst_amrwbdec_parse (GstAudioDecoder * dec, GstAdapter * adapter,
 
   if (block) {
     if (block > size)
-      return GST_FLOW_UNEXPECTED;
+      return GST_FLOW_EOS;
     *offset = 0;
     *length = block;
   } else {



More information about the gstreamer-commits mailing list