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

Commit 9d2189ff authored by Zhijun He's avatar Zhijun He Committed by Android (Google) Code Review
Browse files

Merge "Camera2Client: avoid two consecutive sets of configure_streams calls" into lmp-dev

parents 95740336 96ff5c48
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -995,6 +995,10 @@ status_t Camera2Client::startRecordingL(Parameters &params, bool restart) {
        case Parameters::STOPPED:
            res = startPreviewL(params, false);
            if (res != OK) return res;
            // Make sure first preview request is submitted to the HAL device to avoid
            // two consecutive set of configure_streams being called into the HAL.
            // TODO: Refactor this to avoid initial preview configuration.
            syncWithDevice();
            break;
        case Parameters::PREVIEW:
            // Ready to go