OSDN Git Service

Revert the workaround for the buggy driver.
authorChih-Chung Chang <chihchung@google.com>
Fri, 5 Jun 2009 09:32:54 +0000 (17:32 +0800)
committerChih-Chung Chang <chihchung@google.com>
Tue, 9 Jun 2009 05:51:58 +0000 (13:51 +0800)
The original change is d55a5e92d6065bd36a60925221d8cc9a773572eb.

src/com/android/camera/VideoCamera.java

index e3143d0..547c4b5 100644 (file)
@@ -484,12 +484,7 @@ public class VideoCamera extends Activity implements View.OnClickListener,
 
         Log.v(TAG, "startPreview");
         if (mPreviewing) {
-            // We should just return here, but we stop and start again to avoid
-            // the bug in driver.
-            mCameraDevice.lock();
-            mCameraDevice.stopPreview();
-            mCameraDevice.startPreview();
-            mCameraDevice.unlock();
+            // After recording a video, preview is not stopped. So just return.
             return true;
         }