Revert r6358 "AppRTCDemo(Android): only stop the cameraThread's looper after stopping the camera."

Makes stopping flakier for some reason :/

BUG=
R=glaznev@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/21609004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6361 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
fischman@webrtc.org 2014-06-06 22:24:40 +00:00
parent c3288c130d
commit 24c1778651

View File

@ -219,6 +219,7 @@ public class VideoCaptureAndroid implements PreviewCallback, Callback {
private void stopCaptureOnCameraThread(
Exchanger<Boolean> result) {
Log.d(TAG, "stopCapture");
Looper.myLooper().quit();
if (camera == null) {
throw new RuntimeException("Camera is already stopped!");
}
@ -242,7 +243,6 @@ public class VideoCaptureAndroid implements PreviewCallback, Callback {
error = e;
}
Log.e(TAG, "Failed to stop camera", error);
Looper.myLooper().quit();
exchange(result, false);
return;
}