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

Commit 260a755f authored by Sungtak Lee's avatar Sungtak Lee Committed by Automerger Merge Worker
Browse files

C2BqBuffer: Clear a cached buffer if reallocation is needed am: bae7e457

parents c0896dec bae7e457
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -432,6 +432,10 @@ private:
        if (fence) {
            static constexpr int kFenceWaitTimeMs = 10;

            if (bufferNeedsReallocation) {
                mBuffers[slot].clear();
            }

            status_t status = fence->wait(kFenceWaitTimeMs);
            if (status == -ETIME) {
                // fence is not signalled yet.