Merge "Inserted a 1.5s wait time between the camera release and new camrea."
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java
index 8202efd..5ed68c5 100644
--- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java
+++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/MediaPlayerPerformance.java
@@ -212,8 +212,13 @@
     }
 
     private void terminateMessageLooper() {
-        mLooper.quit();
-        mCamera.release();
+        try {
+            mLooper.quit();
+            mCamera.release();
+            Thread.sleep(1500);
+        } catch (Exception e) {
+            Log.v(TAG, e.toString());
+        }
     }
 
     private final class RawPreviewCallback implements PreviewCallback {