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; |
} |