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

Unified Diff: webrtc/sdk/android/api/org/webrtc/Camera1Session.java

Issue 2642703002: Add failure type parameter to onFailure callback. (Closed)
Patch Set: Correctly handle failure type. Created 3 years, 11 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 | « no previous file | webrtc/sdk/android/api/org/webrtc/Camera2Session.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/api/org/webrtc/Camera1Session.java
diff --git a/webrtc/sdk/android/api/org/webrtc/Camera1Session.java b/webrtc/sdk/android/api/org/webrtc/Camera1Session.java
index 8f2988642f9dab4a772511c7a11cd9a824eff76c..8d81d2d86a2685f7d8fd81134de680f6e6be585f 100644
--- a/webrtc/sdk/android/api/org/webrtc/Camera1Session.java
+++ b/webrtc/sdk/android/api/org/webrtc/Camera1Session.java
@@ -65,7 +65,7 @@ public class Camera1Session implements CameraSession {
try {
camera = android.hardware.Camera.open(cameraId);
} catch (RuntimeException e) {
- callback.onFailure(e.getMessage());
+ callback.onFailure(FailureType.ERROR, e.getMessage());
return;
}
@@ -73,7 +73,7 @@ public class Camera1Session implements CameraSession {
camera.setPreviewTexture(surfaceTextureHelper.getSurfaceTexture());
} catch (IOException e) {
camera.release();
- callback.onFailure(e.getMessage());
+ callback.onFailure(FailureType.ERROR, e.getMessage());
return;
}
« no previous file with comments | « no previous file | webrtc/sdk/android/api/org/webrtc/Camera2Session.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698