summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueProducer.cpp
diff options
context:
space:
mode:
author Sungtak Lee <taklee@google.com> 2019-04-24 16:36:44 -0700
committer Sungtak Lee <taklee@google.com> 2019-05-22 10:37:31 -0700
commitaf14124aaca79f6afa314b19b2a6bf931846fcf9 (patch)
treeb46a5d61e68178cf7b2f6442529c18ca97d85350 /libs/gui/BufferQueueProducer.cpp
parentc0c0fd95ea15f3370e05306ec0854ff54b486eff (diff)
Suppress BufferQueueProducer::dequeueBuffer error logs
BufferQueue acts as an allocator for Codec2. Since BufferQueue does not have notifications on availability of buffers for dequeueBuffer now, suppress error messages from BufferQueueProducer::dequeueBuffer for looping if dequeue timeout is not infinite. Bug: 129899822 Bug: 131773342 Change-Id: Id82ad9207847e71739840969da0375494aaa317f
Diffstat (limited to 'libs/gui/BufferQueueProducer.cpp')
-rw-r--r--libs/gui/BufferQueueProducer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/gui/BufferQueueProducer.cpp b/libs/gui/BufferQueueProducer.cpp
index 3928bb9e40..96d75689eb 100644
--- a/libs/gui/BufferQueueProducer.cpp
+++ b/libs/gui/BufferQueueProducer.cpp
@@ -274,8 +274,12 @@ status_t BufferQueueProducer::waitForFreeSlotThenRelock(FreeSlotCaller caller,
// This check is only done if a buffer has already been queued
if (mCore->mBufferHasBeenQueued &&
dequeuedCount >= mCore->mMaxDequeuedBufferCount) {
- BQ_LOGE("%s: attempting to exceed the max dequeued buffer count "
- "(%d)", callerString, mCore->mMaxDequeuedBufferCount);
+ // Supress error logs when timeout is non-negative.
+ if (mDequeueTimeout < 0) {
+ BQ_LOGE("%s: attempting to exceed the max dequeued buffer "
+ "count (%d)", callerString,
+ mCore->mMaxDequeuedBufferCount);
+ }
return INVALID_OPERATION;
}