OSDN Git Service

Fix a case where the aac hardware decoder is in a transition state and refused a...
authorAndreas Huber <andih@google.com>
Mon, 12 Apr 2010 17:20:12 +0000 (10:20 -0700)
committerAndreas Huber <andih@google.com>
Mon, 12 Apr 2010 17:20:12 +0000 (10:20 -0700)
Change-Id: I4cabd18709c29db0a2763a01cc86525ba0b0aeb7
related-to-bug: 2575976

media/libstagefright/OMXCodec.cpp

index 6037088..b9d6fbc 100644 (file)
@@ -2068,7 +2068,13 @@ void OMXCodec::fillOutputBuffer(BufferInfo *info) {
 
     CODEC_LOGV("Calling fill_buffer on buffer %p", info->mBuffer);
     status_t err = mOMX->fillBuffer(mNode, info->mBuffer);
-    CHECK_EQ(err, OK);
+
+    if (err != OK) {
+        CODEC_LOGE("fillBuffer failed w/ error 0x%08x", err);
+
+        setState(ERROR);
+        return;
+    }
 
     info->mOwnedByComponent = true;
 }