diff --git a/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java b/talk/app/webrtc/java/src/org/webrtc/VideoCapturerAndroid.java index 25ed3f7b76..dee414673c 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."