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

Commit aaa51ee2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Camera: Avoid invalid member variable access from RequestThread"

parents 411c94ab e86358b8
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1804,7 +1804,11 @@ void Camera3Device::pauseStateNotify(bool enable) {

// Pause to reconfigure
status_t Camera3Device::internalPauseAndWaitLocked(nsecs_t maxExpectedDuration) {
    if (mRequestThread.get() != nullptr) {
        mRequestThread->setPaused(true);
    } else {
        return NO_INIT;
    }

    ALOGV("%s: Camera %s: Internal wait until idle (% " PRIi64 " ns)", __FUNCTION__, mId.string(),
          maxExpectedDuration);