summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorLeena Winterrowd <lenhardw@codeaurora.org>2014-08-21 14:08:34 -0700
committerLeena Winterrowd <lenhardw@codeaurora.org>2014-08-21 16:43:23 -0700
commit3fab952910c9988e61f6f83f22de5b434ff8bd20 (patch)
tree94d0e4cb6f91765efe3dede9baae2ac389779586 /src/com/android
parent3d8233a425e5f3e59f402fe3a14e672de1fb7d82 (diff)
downloadandroid_packages_apps_Snap-3fab952910c9988e61f6f83f22de5b434ff8bd20.tar.gz
android_packages_apps_Snap-3fab952910c9988e61f6f83f22de5b434ff8bd20.tar.bz2
android_packages_apps_Snap-3fab952910c9988e61f6f83f22de5b434ff8bd20.zip
SnapdragonCamera: Fix HFR string mismatch
Enforce consistency between HFR strings at the app and HAL levels Change-Id: I10f1cce5f90c1a87c15dddf80d05c28c8eaff298
Diffstat (limited to 'src/com/android')
-rwxr-xr-x[-rw-r--r--]src/com/android/camera/VideoModule.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 698e76ff9..3c2b3541a 100644..100755
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -840,9 +840,9 @@ public class VideoModule implements CameraModule,
if(!("off".equals(HighFrameRate)) && !("hsr".equals(HighFrameRate))) {
Size size = null;
try {
- if (isSupported(HighFrameRate, mParameters.getSupportedVideoHighFrameRateModes())) {
+ if (isSupported(HighFrameRate.substring(3), mParameters.getSupportedVideoHighFrameRateModes())) {
int index = mParameters.getSupportedVideoHighFrameRateModes().indexOf(
- HighFrameRate);
+ HighFrameRate.substring(3));
size = mParameters.getSupportedHfrSizes().get(index);
} else {
return false;
@@ -861,7 +861,7 @@ public class VideoModule implements CameraModule,
return false;
}
- int hfrFps = Integer.parseInt(HighFrameRate);
+ int hfrFps = Integer.parseInt(HighFrameRate.substring(3));
int inputBitrate = videoWidth * videoHeight * hfrFps;
boolean supported = false;