summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorYin-Chia Yeh <yinchiayeh@google.com>2015-09-11 13:01:30 -0700
committerYin-Chia Yeh <yinchiayeh@google.com>2015-09-11 13:01:30 -0700
commit652f7d7ebd9a8cec067588c2a232e49710d5cd83 (patch)
treeb350b90f4339c5c2ed5cf88a367d6a989f24065d /services
parenta89ee9ef8ee7774c1ea2d64c7f24c870fcc791ca (diff)
downloadframeworks_av-652f7d7ebd9a8cec067588c2a232e49710d5cd83.zip
frameworks_av-652f7d7ebd9a8cec067588c2a232e49710d5cd83.tar.gz
frameworks_av-652f7d7ebd9a8cec067588c2a232e49710d5cd83.tar.bz2
Camera: API1 shim: select better default FPS range
Bug: 23992350 Change-Id: Ie86b24d9e5ea753c6dfc2e5526d371b339be96a1
Diffstat (limited to 'services')
-rw-r--r--services/camera/libcameraservice/api1/client2/Parameters.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/camera/libcameraservice/api1/client2/Parameters.cpp b/services/camera/libcameraservice/api1/client2/Parameters.cpp
index 442eb75..44447b4 100644
--- a/services/camera/libcameraservice/api1/client2/Parameters.cpp
+++ b/services/camera/libcameraservice/api1/client2/Parameters.cpp
@@ -214,8 +214,8 @@ status_t Parameters::initialize(const CameraMetadata *info, int deviceVersion) {
supportedPreviewFormats);
}
- previewFpsRange[0] = availableFpsRanges.data.i32[0];
- previewFpsRange[1] = availableFpsRanges.data.i32[1];
+ previewFpsRange[0] = fastInfo.bestStillCaptureFpsRange[0];
+ previewFpsRange[1] = fastInfo.bestStillCaptureFpsRange[1];
// PREVIEW_FRAME_RATE / SUPPORTED_PREVIEW_FRAME_RATES are deprecated, but
// still have to do something sane for them