summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/VideoModule.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 498129ae5..7d73246fe 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -393,7 +393,11 @@ public class VideoModule extends CameraModule
private void takeASnapshot() {
// Only take snapshots if video snapshot is supported by device
- if (CameraUtil.isVideoSnapshotSupported(mParameters) && !mIsVideoCaptureIntent) {
+ if(!mParameters.isVideoSnapshotSupported()) {
+ Log.w(TAG, "Cannot take a video snapshot - not supported by hardware");
+ return;
+ }
+ if (!mIsVideoCaptureIntent) {
if (!mMediaRecorderRecording || mPaused || mSnapshotInProgress
|| !mAppController.isShutterEnabled()) {
return;