| Index: webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java
|
| diff --git a/webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java b/webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java
|
| index e4f2449cb9d70add50eb3dc63f948c833a83f40d..39ed12cfa3d2708c9b0ee74c3724a0d707154ad7 100644
|
| --- a/webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java
|
| +++ b/webrtc/api/java/android/org/webrtc/VideoCapturerAndroid.java
|
| @@ -369,7 +369,11 @@ public class VideoCapturerAndroid implements
|
| final CapturerObserver frameObserver) {
|
| Logging.d(TAG, "startCapture requested: " + width + "x" + height + "@" + framerate);
|
| if (surfaceTextureHelper == null) {
|
| - throw new IllegalArgumentException("surfaceTextureHelper not set.");
|
| + frameObserver.onCapturerStarted(false /* success */);
|
| + if (eventsHandler != null) {
|
| + eventsHandler.onCameraError("No SurfaceTexture created.");
|
| + }
|
| + return;
|
| }
|
| if (applicationContext == null) {
|
| throw new IllegalArgumentException("applicationContext not set.");
|
|
|