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

Commit 627baacc authored by Wu-cheng Li's avatar Wu-cheng Li
Browse files

Camera::create should fail when it fails to connect the camera.

bug:3197565

Change-Id: I3439a25c06b00615e8257e6b3db85df081643643
parent c213b812
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -80,9 +80,10 @@ sp<Camera> Camera::create(const sp<ICamera>& camera)
        c->mStatus = NO_ERROR;
        c->mCamera = camera;
        camera->asBinder()->linkToDeath(c);
    }
        return c;
    }
    return 0;
}

void Camera::init()
{