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

Commit 73d5662e authored by Mathias Agopian's avatar Mathias Agopian Committed by Guang Zhu
Browse files

fix typo that broke all the builds

cherry pick into master since auto-merger is blocked

Bug: 7584338
Change-Id: Ie7d7c238de1fd224b3b0bae9669a8dcb2f700a79
parent e64b38fa
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -314,15 +314,12 @@ status_t BufferQueue::dequeueBuffer(int *outBuf, sp<Fence>& outFence,
                     * the consumer may still have pending reads of the
                     * buffers in flight.
                     */
                    if (found >= 0) {
                        bool isOlder = mSlots[i].mFrameNumber <
                                mSlots[found].mFrameNumber;
                        if (isOlder) {
                    if ((found < 0) ||
                            mSlots[i].mFrameNumber < mSlots[found].mFrameNumber) {
                        found = i;
                    }
                }
            }
            }

            // clients are not allowed to dequeue more than one buffer
            // if they didn't set a buffer count.