diff options
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 |
commit | 7509d7725207bfc28f7757c18518e21110c0736d (patch) | |
tree | 1af0f48a1b15b6c5b41ab2500319c9337f781e75 /media/libstagefright/OMXCodec.cpp | |
parent | a91992013f26cd6ad293d3599c13601e0df7994d (diff) | |
parent | 018761c5cc4aefd0495eaa4666f2372a59a7980a (diff) | |
download | frameworks_av-7509d7725207bfc28f7757c18518e21110c0736d.zip frameworks_av-7509d7725207bfc28f7757c18518e21110c0736d.tar.gz frameworks_av-7509d7725207bfc28f7757c18518e21110c0736d.tar.bz2 |
Merge "Turn another assertion into a runtime error. Damn you surfaces." into honeycomb
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rw-r--r-- | media/libstagefright/OMXCodec.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index e516cb4..d842f65 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; } |