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

Commit 19fd91fb authored by Sebastian Schmidt's avatar Sebastian Schmidt Committed by Steve Kondik
Browse files

Fix "Camera: add command line option to disable shutter sound at runtime"

This fixes fbb4bf87 which introduced a
syntax error and was reverted in
4bc3cef7.
parent e593846b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -216,6 +216,7 @@ CameraService::Client::Client(const sp<CameraService>& cameraService,
        const sp<ICameraClient>& cameraClient, pid_t clientPid)
{
    int callingPid = getCallingPid();
    char propVal[PROPERTY_VALUE_MAX];
    LOGD("Client::Client E (pid %d)", callingPid);
    mCameraService = cameraService;
    mCameraClient = cameraClient;
@@ -233,6 +234,8 @@ CameraService::Client::Client(const sp<CameraService>& cameraService,
                             CAMERA_MSG_ZOOM |
                             CAMERA_MSG_FOCUS);

    property_get("persist.camera.shutter.disable", propVal, "0");
    if(atoi(propVal) != 1)
        mMediaPlayerClick = newMediaPlayer("/system/media/audio/ui/camera_click.ogg");
    mMediaPlayerBeep = newMediaPlayer("/system/media/audio/ui/VideoRecord.ogg");
    mOverlayW = 0;