diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index b28b8408..6dcb6e2a 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -1456,11 +1456,13 @@ public class VideoCamera extends ActivityBase } private void getThumbnail() { - Bitmap videoFrame = ThumbnailUtils.createVideoThumbnail( - mCurrentVideoFilename, Video.Thumbnails.MINI_KIND); - if (videoFrame != null) { - mThumbnail = new Thumbnail(mCurrentVideoUri, videoFrame, 0); - mThumbnailButton.setBitmap(mThumbnail.getBitmap()); + if (mCurrentVideoUri != null) { + Bitmap videoFrame = ThumbnailUtils.createVideoThumbnail( + mCurrentVideoFilename, Video.Thumbnails.MINI_KIND); + if (videoFrame != null) { + mThumbnail = new Thumbnail(mCurrentVideoUri, videoFrame, 0); + mThumbnailButton.setBitmap(mThumbnail.getBitmap()); + } } } |