diff options
Diffstat (limited to 'libs/gui/BufferQueueConsumer.cpp')
| -rw-r--r-- | libs/gui/BufferQueueConsumer.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/gui/BufferQueueConsumer.cpp b/libs/gui/BufferQueueConsumer.cpp index b591c4e8ba..cbc88932ac 100644 --- a/libs/gui/BufferQueueConsumer.cpp +++ b/libs/gui/BufferQueueConsumer.cpp @@ -622,6 +622,10 @@ status_t BufferQueueConsumer::setMaxAcquiredBufferCount(              return NO_INIT;          } +        if (maxAcquiredBuffers == mCore->mMaxAcquiredBufferCount) { +            return NO_ERROR; +        } +          // The new maxAcquiredBuffers count should not be violated by the number          // of currently acquired buffers          int acquiredCount = 0;  |