summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Huber <andih@google.com> 2011-01-19 09:49:32 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2011-01-19 09:49:32 -0800
commit2597aedb3869e46f945359c529e03263c77a944d (patch)
tree7c859bc8dded24883d25957c2a1f2809fe0b3f6d
parent42466b1cad4cec1aa746809dfcca702456415be4 (diff)
parentba1b16790a02abfba4e10708470d09ee642c3464 (diff)
Merge "Turn another assertion into a runtime error. Damn you surfaces." into honeycomb
-rw-r--r--media/libstagefright/OMXCodec.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index e516cb45765b..d842f65083c8 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -2233,7 +2233,11 @@ void OMXCodec::onCmdComplete(OMX_COMMANDTYPE cmd, OMX_U32 data) {
enablePortAsync(portIndex);
status_t err = allocateBuffersOnPort(portIndex);
- CHECK_EQ(err, (status_t)OK);
+
+ if (err != OK) {
+ CODEC_LOGE("allocateBuffersOnPort failed (err = %d)", err);
+ setState(ERROR);
+ }
}
break;
}