am f3d505af: Merge "Bug 5383077: handle video thumbnail generation correctly when effects are on" into ics-mr0

* commit 'f3d505afe66e0961e904027e8ab98455ccd3bd2e':
  Bug 5383077: handle video thumbnail generation correctly when effects are on
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index 1249ce9..1904d78 100755
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -1356,6 +1356,10 @@
     }
 
     private void addVideoToMediaStore() {
+        if (mStorageSpace < LOW_STORAGE_THRESHOLD) {
+            Log.e(TAG, "Space insufficient to add media: " + mStorageSpace);
+            return;
+        }
         if (mVideoFileDescriptor == null) {
             Uri videoTable = Uri.parse("content://media/external/video/media");
             mCurrentVideoValues.put(Video.Media.SIZE,