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

Commit a27c4aa2 authored by Ruben Brunk's avatar Ruben Brunk
Browse files

camera: Fix race condition between setParameters() and stopPreview().

Bug: 10414772
Change-Id: I928cb3935afb101da8a7931f88c27dccdb03b4a9
parent c85d6196
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -854,6 +854,7 @@ void Camera2Client::stopPreviewL() {
            // no break
        case Parameters::RECORD:
        case Parameters::PREVIEW:
            syncWithDevice();
            res = stopStream();
            if (res != OK) {
                ALOGE("%s: Camera %d: Can't stop streaming: %s (%d)",