| Index: talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java
|
| diff --git a/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java b/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java
|
| index 25ed3f7b76f007c3fea5ba7975a7acc382d74858..dee414673c202ce279a7cd6779af761436562876 100644
|
| --- a/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java
|
| +++ b/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java
|
| @@ -898,6 +898,8 @@ public class VideoCapturerAndroid extends VideoCapturer implements PreviewCallba
|
|
|
| void stopReturnBuffersToCamera() {
|
| this.camera = null;
|
| + queuedBuffers.clear();
|
| + // Frames in |pendingBuffers| need to be kept alive until they are returned.
|
| Log.d(TAG, "stopReturnBuffersToCamera called."
|
| + (pendingBuffers.isEmpty() ?
|
| " All buffers have been returned."
|
|
|