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

Commit 32dc5a99 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Android (Google) Code Review
Browse files

Merge "Camera2: Send ILLEGAL_ARGUMENT error for a bad stream configuration" into nyc-dev

parents 31c76d38 ace80580
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -342,7 +342,11 @@ binder::Status CameraDeviceClient::endConfigure(bool isConstrainedHighSpeed) {
    }

    status_t err = mDevice->configureStreams(isConstrainedHighSpeed);
    if (err != OK) {
    if (err == BAD_VALUE) {
        res = STATUS_ERROR_FMT(CameraService::ERROR_ILLEGAL_ARGUMENT,
                "Camera %d: Unsupported set of inputs/outputs provided",
                mCameraId);
    } else if (err != OK) {
        res = STATUS_ERROR_FMT(CameraService::ERROR_INVALID_OPERATION,
                "Camera %d: Error configuring streams: %s (%d)",
                mCameraId, strerror(-err), err);