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

Commit 90746f42 authored by Chien-Yu Chen's avatar Chien-Yu Chen
Browse files

Camera3: allow reconfiguring the input stream

Change-Id: Ia9d0db1f3378264fc9173bfc8706c8f955b79182
parent 2f33dbc6
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -109,11 +109,7 @@ camera3_stream* Camera3Stream::startConfiguration() {
            // oldUsage/oldMaxBuffers
            // oldUsage/oldMaxBuffers
            return this;
            return this;
        case STATE_CONFIGURED:
        case STATE_CONFIGURED:
            if (stream_type == CAMERA3_STREAM_INPUT) {
            if (hasOutstandingBuffersLocked()) {
                ALOGE("%s: Cannot configure an input stream twice",
                        __FUNCTION__);
                return NULL;
            } else if (hasOutstandingBuffersLocked()) {
                ALOGE("%s: Cannot configure stream; has outstanding buffers",
                ALOGE("%s: Cannot configure stream; has outstanding buffers",
                        __FUNCTION__);
                        __FUNCTION__);
                return NULL;
                return NULL;