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

Commit 7b171a9e authored by Zhijun He's avatar Zhijun He
Browse files

Camera3: log a warning when frame drop occurs

Bug: 28311997
Change-Id: I7253fb040c1f08c18fc7a01042503e9457163a1e
parent 36ff576e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -271,6 +271,7 @@ status_t Camera3OutputStream::returnBufferCheckedLocked(
     */
    if (buffer.status == CAMERA3_BUFFER_STATUS_ERROR) {
        // Cancel buffer
        ALOGW("A frame is dropped for stream %d", mId);
        res = currentConsumer->cancelBuffer(currentConsumer.get(),
                container_of(buffer.buffer, ANativeWindowBuffer, handle),
                anwReleaseFence);