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

Commit 32cd04e0 authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: Avoid unnecessary close of buffer release fence fds

According to the native window documentation:
The caller must not use the fence file descriptor after it is
passed to cancelBuffer/queueBuffer, and the ANativeWindow
implementation is responsible for closing it.

Bug: 241354093
Test: Manual using camera application
Change-Id: Ie85114666e36bb1a598859462ccd3ab0709d247a
parent 912a06b1
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -507,10 +507,6 @@ status_t Camera3OutputStream::returnBufferCheckedLocked(
        mStreamUnpreparable = true;
    }

    if (res != OK) {
        close(anwReleaseFence);
    }

    *releaseFenceOut = releaseFence;

    return res;