diff options
| author | 2012-03-08 23:42:41 -0800 | |
|---|---|---|
| committer | 2012-03-08 23:42:41 -0800 | |
| commit | ed43fcec43c16f2b6416c902e05a422c407d8239 (patch) | |
| tree | 284936871d7b88f28bb64d551719b584b24ae8a3 /libs/gui/BufferQueue.cpp | |
| parent | 35aadd6be249da4bd4851692e6aff757c91b32a7 (diff) | |
| parent | c2c1f2f24cd70bdcf1958157bab38467bf0fdc71 (diff) | |
Merge "BufferQueue: fixed issues with buffer slots not available"
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
| -rw-r--r-- | libs/gui/BufferQueue.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/gui/BufferQueue.cpp b/libs/gui/BufferQueue.cpp index 25a4c227ff..513a00e9ea 100644 --- a/libs/gui/BufferQueue.cpp +++ b/libs/gui/BufferQueue.cpp @@ -370,18 +370,13 @@ status_t BufferQueue::dequeueBuffer(int *outBuf, uint32_t w, uint32_t h, } } - // we're in synchronous mode and didn't find a buffer, we need to - // wait for some buffers to be consumed - tryAgain = mSynchronousMode && (foundSync == INVALID_BUFFER_SLOT); + // if no buffer is found, wait for a buffer to be released + tryAgain = found == INVALID_BUFFER_SLOT; if (tryAgain) { mDequeueCondition.wait(mMutex); } } - if (mSynchronousMode && found == INVALID_BUFFER_SLOT) { - // foundSync guaranteed to be != INVALID_BUFFER_SLOT - found = foundSync; - } if (found == INVALID_BUFFER_SLOT) { // This should not happen. |