diff options
author | Lajos Molnar <lajos@google.com> | 2014-08-12 10:28:12 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-08-12 10:30:09 -0700 |
commit | e53350373ac516257b4f8956ff1e3f1ac48f607e (patch) | |
tree | dbefd73602e3247f1f135f50dcfb3e4338848b20 /media/libstagefright | |
parent | d018b8ffd84452a7a4b992b5325713b3256e48ff (diff) | |
download | frameworks_av-e53350373ac516257b4f8956ff1e3f1ac48f607e.zip frameworks_av-e53350373ac516257b4f8956ff1e3f1ac48f607e.tar.gz frameworks_av-e53350373ac516257b4f8956ff1e3f1ac48f607e.tar.bz2 |
stagefright: allow scenarios when dequeueBufferFromNativeWindow fails
We can run out of native buffers when the bufferqueue is abandoned.
Bug: 16839124
Change-Id: If605f692b87082f1630e1da0fd44da0cb76133f5
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/ACodec.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index ac80da2..b77e1cd 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -3946,8 +3946,7 @@ void ACodec::BaseState::onInputBufferFilled(const sp<AMessage> &msg) { (outputMode == FREE_BUFFERS ? "FREE" : outputMode == KEEP_BUFFERS ? "KEEP" : "RESUBMIT")); if (outputMode == RESUBMIT_BUFFERS) { - CHECK_EQ(mCodec->submitOutputMetaDataBuffer(), - (status_t)OK); + mCodec->submitOutputMetaDataBuffer(); } } |