Index: webrtc/api/android/java/src/org/webrtc/VideoCapturerAndroid.java |
diff --git a/webrtc/api/android/java/src/org/webrtc/VideoCapturerAndroid.java b/webrtc/api/android/java/src/org/webrtc/VideoCapturerAndroid.java |
index a019ff6afb8acfc1f2b7e111e1b035ee88882560..4c0cb1c061bd2f4de73f3f9a7c8cf88c61b0ab04 100644 |
--- a/webrtc/api/android/java/src/org/webrtc/VideoCapturerAndroid.java |
+++ b/webrtc/api/android/java/src/org/webrtc/VideoCapturerAndroid.java |
@@ -92,7 +92,11 @@ public class VideoCapturerAndroid |
} |
Logging.e(TAG, errorMessage); |
if (eventsHandler != null) { |
- eventsHandler.onCameraError(errorMessage); |
+ if (error == android.hardware.Camera.CAMERA_ERROR_EVICTED) { |
+ eventsHandler.onCameraDisconnected(); |
+ } else { |
+ eventsHandler.onCameraError(errorMessage); |
+ } |
} |
} |
}; |