am bb6fcb0f: Merge "Handle MediaRecorder stop exception for effects recording" into ics-mr0

* commit 'bb6fcb0f4d2a694b0d9af472d7444c653592a99e':
  Handle MediaRecorder stop exception for effects recording
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
old mode 100755
new mode 100644
index 77e163e..5fddcf7
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -76,6 +76,8 @@
 import java.util.Iterator;
 import java.util.List;
 
+import android.filterpacks.videosink.MediaRecorderStopException;
+
 /**
  * The Camcorder activity.
  */
@@ -1948,6 +1950,10 @@
         if (fileName != null && new File(fileName).exists()) {
             deleteVideoFile(fileName);
         }
+        if (exception instanceof MediaRecorderStopException) {
+            Log.w(TAG, "Problem recoding video file. Removing incomplete file.");
+            return;
+        }
         throw new RuntimeException("Error during recording!", exception);
     }