From a9b3f482c555729ee87daa2055eec19f1290e1e0 Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Tue, 18 Oct 2011 18:09:46 -0700 Subject: 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 --- src/com/android/camera/VideoCamera.java | 6 ++++-- 1 file 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. -- cgit v1.1