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

Commit 768b7d07 authored by Igor Murashkin's avatar Igor Murashkin
Browse files

camera3: Don't crash when taking a still capture with ZSL disabled

Bug: 8790212
Change-Id: I4bf7ac5ab856b0ea1738844182efb86137e14083
parent bf2bb00e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -305,8 +305,11 @@ status_t ZslProcessor3::clearZslQueue() {
}

status_t ZslProcessor3::clearZslQueueLocked() {
    if (mZslStream != 0) {
        return mZslStream->clearInputRingBuffer();
    }
    return OK;
}

void ZslProcessor3::dump(int fd, const Vector<String16>& /*args*/) const {
    Mutex::Autolock l(mInputMutex);