Loading services/camera/libcameraservice/Camera3Device.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -677,6 +677,8 @@ status_t Camera3Device::deleteStream(int id) { Mutex::Autolock l(mLock); status_t res; ALOGV("%s: Camera %d: Deleting stream %d", __FUNCTION__, mId, id); // CameraDevice semantics require device to already be idle before // deleteStream is called, unlike for createStream. if (mStatus != STATUS_IDLE) { Loading services/camera/libcameraservice/camera3/Camera3IOStreamBase.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -159,7 +159,9 @@ status_t Camera3IOStreamBase::disconnectLocked() { break; default: // No connection, nothing to do return OK; ALOGV("%s: Stream %d: Already disconnected", __FUNCTION__, mId); return -ENOTCONN; } if (mDequeuedBufferCount > 0) { Loading services/camera/libcameraservice/camera3/Camera3Stream.cpp +9 −1 Original line number Diff line number Diff line Loading @@ -258,7 +258,15 @@ bool Camera3Stream::hasOutstandingBuffers() const { status_t Camera3Stream::disconnect() { ATRACE_CALL(); Mutex::Autolock l(mLock); return disconnectLocked(); ALOGV("%s: Stream %d: Disconnecting...", __FUNCTION__, mId); status_t res = disconnectLocked(); if (res == -ENOTCONN) { // "Already disconnected" -- not an error return OK; } else { return res; } } status_t Camera3Stream::registerBuffersLocked(camera3_device *hal3Device) { Loading services/camera/libcameraservice/camera3/Camera3Stream.h +1 −0 Original line number Diff line number Diff line Loading @@ -251,6 +251,7 @@ class Camera3Stream : virtual status_t returnInputBufferLocked( const camera3_stream_buffer &buffer); virtual bool hasOutstandingBuffersLocked() const = 0; // Can return -ENOTCONN when we are already disconnected (not an error) virtual status_t disconnectLocked() = 0; // Configure the buffer queue interface to the other end of the stream, Loading Loading
services/camera/libcameraservice/Camera3Device.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -677,6 +677,8 @@ status_t Camera3Device::deleteStream(int id) { Mutex::Autolock l(mLock); status_t res; ALOGV("%s: Camera %d: Deleting stream %d", __FUNCTION__, mId, id); // CameraDevice semantics require device to already be idle before // deleteStream is called, unlike for createStream. if (mStatus != STATUS_IDLE) { Loading
services/camera/libcameraservice/camera3/Camera3IOStreamBase.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -159,7 +159,9 @@ status_t Camera3IOStreamBase::disconnectLocked() { break; default: // No connection, nothing to do return OK; ALOGV("%s: Stream %d: Already disconnected", __FUNCTION__, mId); return -ENOTCONN; } if (mDequeuedBufferCount > 0) { Loading
services/camera/libcameraservice/camera3/Camera3Stream.cpp +9 −1 Original line number Diff line number Diff line Loading @@ -258,7 +258,15 @@ bool Camera3Stream::hasOutstandingBuffers() const { status_t Camera3Stream::disconnect() { ATRACE_CALL(); Mutex::Autolock l(mLock); return disconnectLocked(); ALOGV("%s: Stream %d: Disconnecting...", __FUNCTION__, mId); status_t res = disconnectLocked(); if (res == -ENOTCONN) { // "Already disconnected" -- not an error return OK; } else { return res; } } status_t Camera3Stream::registerBuffersLocked(camera3_device *hal3Device) { Loading
services/camera/libcameraservice/camera3/Camera3Stream.h +1 −0 Original line number Diff line number Diff line Loading @@ -251,6 +251,7 @@ class Camera3Stream : virtual status_t returnInputBufferLocked( const camera3_stream_buffer &buffer); virtual bool hasOutstandingBuffersLocked() const = 0; // Can return -ENOTCONN when we are already disconnected (not an error) virtual status_t disconnectLocked() = 0; // Configure the buffer queue interface to the other end of the stream, Loading