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

Commit 0be123df authored by Ruchit Sharma's avatar Ruchit Sharma Committed by Sasha Levitskiy
Browse files

camera: clear ZSLQueue when switching modes

not clearing the queue here will eat up unnecessary memory every time
we switch from video to still mode.

Change-Id: I279ec709b485ca0dab672464e5b829be849bcaa5
parent e80b229a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -825,6 +825,7 @@ status_t Camera2Client::startPreviewL(Parameters &params, bool restart) {
        }
        outputStreams.push(getZslStreamId());
    } else {
        mZslProcessor->clearZslQueue();
        mZslProcessor->deleteStream();
    }