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

Commit cddfdbf3 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Reset mExpectedMinDuration during configureStreams

mExpectedMinDuration needs to be reset during configureStreams.
Otherwise, when streams are configured, the output streams wont'
receive the callback.

Test: Measure frame drop/miss after switching from camera to video
Bug: 236179978
Change-Id: Ie6795c2ec728e54e77676d55875dafca1997049f
parent 3ff1283e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2291,6 +2291,9 @@ status_t Camera3Device::configureStreamsLocked(int operatingMode,
        mOperatingMode = operatingMode;
    }

    // Reset min expected duration when session is reconfigured.
    mMinExpectedDuration = 0;

    // In case called from configureStreams, abort queued input buffers not belonging to
    // any pending requests.
    if (mInputStream != NULL && notifyRequestThread) {