diff options
author | Ruchit Sharma <ruchits@nvidia.com> | 2014-07-22 12:35:30 -0400 |
---|---|---|
committer | Sasha Levitskiy <sanek@google.com> | 2014-07-22 10:53:26 -0700 |
commit | 0be123df1897fd3fe1b7ba30f24d8ae4c91b4dc7 (patch) | |
tree | 61db208f3e59e3a257b3a08f582e1c0c5d440a07 /services | |
parent | e80b229a80a992cb14647bcc7bfa8c926dc65fe6 (diff) | |
download | frameworks_av-0be123df1897fd3fe1b7ba30f24d8ae4c91b4dc7.zip frameworks_av-0be123df1897fd3fe1b7ba30f24d8ae4c91b4dc7.tar.gz frameworks_av-0be123df1897fd3fe1b7ba30f24d8ae4c91b4dc7.tar.bz2 |
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
Diffstat (limited to 'services')
-rw-r--r-- | services/camera/libcameraservice/api1/Camera2Client.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/api1/Camera2Client.cpp b/services/camera/libcameraservice/api1/Camera2Client.cpp index 9721e13..8075515 100644 --- a/services/camera/libcameraservice/api1/Camera2Client.cpp +++ b/services/camera/libcameraservice/api1/Camera2Client.cpp @@ -825,6 +825,7 @@ status_t Camera2Client::startPreviewL(Parameters ¶ms, bool restart) { } outputStreams.push(getZslStreamId()); } else { + mZslProcessor->clearZslQueue(); mZslProcessor->deleteStream(); } |