Loading services/camera/libcameraservice/device3/Camera3OutputStream.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -331,7 +331,7 @@ status_t Camera3OutputStream::fixUpHidlJpegBlobHeader(ANativeWindowBuffer* anwBu status_t res = gbLocker.lockAsync( GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_RARELY, &mapped, fenceFd.get()); &mapped, fenceFd.release()); if (res != OK) { ALOGE("%s: Failed to lock the buffer: %s (%d)", __FUNCTION__, strerror(-res), res); return res; Loading Loading @@ -1305,7 +1305,7 @@ void Camera3OutputStream::dumpImageToDisk(nsecs_t timestamp, void* mapped = nullptr; base::unique_fd fenceFd(dup(fence)); status_t res = graphicBuffer->lockAsync(GraphicBuffer::USAGE_SW_READ_OFTEN, &mapped, fenceFd.get()); fenceFd.release()); if (res != OK) { ALOGE("%s: Failed to lock the buffer: %s (%d)", __FUNCTION__, strerror(-res), res); return; Loading Loading
services/camera/libcameraservice/device3/Camera3OutputStream.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -331,7 +331,7 @@ status_t Camera3OutputStream::fixUpHidlJpegBlobHeader(ANativeWindowBuffer* anwBu status_t res = gbLocker.lockAsync( GraphicBuffer::USAGE_SW_READ_OFTEN | GraphicBuffer::USAGE_SW_WRITE_RARELY, &mapped, fenceFd.get()); &mapped, fenceFd.release()); if (res != OK) { ALOGE("%s: Failed to lock the buffer: %s (%d)", __FUNCTION__, strerror(-res), res); return res; Loading Loading @@ -1305,7 +1305,7 @@ void Camera3OutputStream::dumpImageToDisk(nsecs_t timestamp, void* mapped = nullptr; base::unique_fd fenceFd(dup(fence)); status_t res = graphicBuffer->lockAsync(GraphicBuffer::USAGE_SW_READ_OFTEN, &mapped, fenceFd.get()); fenceFd.release()); if (res != OK) { ALOGE("%s: Failed to lock the buffer: %s (%d)", __FUNCTION__, strerror(-res), res); return; Loading