diff options
-rw-r--r-- | libs/gui/BufferQueue.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gui/BufferQueue.cpp b/libs/gui/BufferQueue.cpp index 086e298..9f9b441 100644 --- a/libs/gui/BufferQueue.cpp +++ b/libs/gui/BufferQueue.cpp @@ -547,6 +547,8 @@ status_t BufferQueue::queueBuffer(int buf, Fifo::iterator front(mQueue.begin()); // buffer currently queued is freed mSlots[*front].mBufferState = BufferSlot::FREE; + // reset the frame number of the freed buffer + mSlots[*front].mFrameNumber = 0; // and we record the new buffer index in the queued list *front = buf; } |