commit | 2babee6604476c80385e70b67612a96663a19244 | [log] [tgz] |
---|---|---|
author | Yu Shan Emily Lau <yslau@google.com> | Wed Mar 17 15:28:30 2010 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Mar 17 15:28:30 2010 -0700 |
tree | a9932c523242df2f7ec4029c9da39664f5b0277c | |
parent | 8ad6465ca4a54bf124ea65389132fd1084ac291f [diff] | |
parent | 1cffa446ee92314a09ef767970ee93fa8758c95a [diff] |
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 {