Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af14124a authored by Sungtak Lee's avatar Sungtak Lee
Browse files

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
parent c0c0fd95
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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;
        }