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

Commit cde0065b authored by Mohan Kandra's avatar Mohan Kandra Committed by Steve Kondik
Browse files

Camera: Disable Video_Frame message before stop recording call

Disable VIDEO_FRAME message before stop recording is issed, which will
avoid the race condition that happens between stop recording and
receivePreviewframe on mRecordWait lock.

Change-Id: I3da4a22a1423390f5714edb8d24aef215148bee1
parent 1b419fd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -833,8 +833,8 @@ void CameraService::Client::stopRecording()
            mMediaPlayerBeep->start();
        }

        mHardware->stopRecording();
        mHardware->disableMsgType(CAMERA_MSG_VIDEO_FRAME);
        mHardware->stopRecording();
        LOGV("stopRecording(), hardware stopped OK");
    }