From e53350373ac516257b4f8956ff1e3f1ac48f607e Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Tue, 12 Aug 2014 10:28:12 -0700 Subject: stagefright: allow scenarios when dequeueBufferFromNativeWindow fails We can run out of native buffers when the bufferqueue is abandoned. Bug: 16839124 Change-Id: If605f692b87082f1630e1da0fd44da0cb76133f5 --- media/libstagefright/ACodec.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'media') 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 &msg) { (outputMode == FREE_BUFFERS ? "FREE" : outputMode == KEEP_BUFFERS ? "KEEP" : "RESUBMIT")); if (outputMode == RESUBMIT_BUFFERS) { - CHECK_EQ(mCodec->submitOutputMetaDataBuffer(), - (status_t)OK); + mCodec->submitOutputMetaDataBuffer(); } } -- cgit v1.1