Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java

Issue 2168623002: Refactor stopCapture to be asynchronous in VideoCapturerAndroid. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@androidvideotracksource
Patch Set: Synchronized. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/androidtests/src/org/webrtc/CameraVideoCapturerTestFixtures.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java
index f12d5ce48f7c816f2718cd5abbf0b5b919ceb39b..f2c5270afffabb83597e07936ea39c3da185c622 100644
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java
@@ -575,11 +575,7 @@ public class PeerConnectionClient {
}
Log.d(TAG, "Stopping capture.");
if (videoCapturer != null) {
- try {
- videoCapturer.stopCapture();
- } catch(InterruptedException e) {
- throw new RuntimeException(e);
- }
+ videoCapturer.stopCapture();
videoCapturer.dispose();
videoCapturer = null;
}
@@ -768,9 +764,7 @@ public class PeerConnectionClient {
public void run() {
if (videoCapturer != null && !videoCapturerStopped) {
Log.d(TAG, "Stop video source.");
- try {
- videoCapturer.stopCapture();
- } catch (InterruptedException e) {}
+ videoCapturer.stopCapture();
videoCapturerStopped = true;
}
}
« no previous file with comments | « webrtc/api/androidtests/src/org/webrtc/CameraVideoCapturerTestFixtures.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698