diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2011-10-18 18:09:46 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2011-10-18 18:09:46 -0700 |
commit | a9b3f482c555729ee87daa2055eec19f1290e1e0 (patch) | |
tree | 9dda21f24b26154cba75466767e94130793bc1ef /src/com/android/camera | |
parent | 967d36c02eca4ae3af6dcd93ac9c7ffd6401aea5 (diff) | |
download | LegacyCamera-a9b3f482c555729ee87daa2055eec19f1290e1e0.zip LegacyCamera-a9b3f482c555729ee87daa2055eec19f1290e1e0.tar.gz LegacyCamera-a9b3f482c555729ee87daa2055eec19f1290e1e0.tar.bz2 |
Use video capture intent quality when recording with effects.
Previously, effects always used 480p quality. When used for messaging,
the intent requests a lower quality, and it needs to be used instead.
Bug: 5465146
Change-Id: Ib2ae772de35ad84b8c19f961c71fd9ae43dd4426
Diffstat (limited to 'src/com/android/camera')
-rwxr-xr-x | src/com/android/camera/VideoCamera.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 6a251d4..353b540 100755 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -723,8 +723,10 @@ public class VideoCamera extends ActivityBase null); } } else { - // Set quality to 480p for effects - quality = CamcorderProfile.QUALITY_480P; + // Set quality to 480p for effects, unless intent is overriding it + if (!intent.hasExtra(MediaStore.EXTRA_VIDEO_QUALITY)) { + quality = CamcorderProfile.QUALITY_480P; + } // On initial startup, can get here before indicator control is // enabled. In that case, UI quality override handled in // initializeIndicatorControl. |