Return texture frame when dropping frames in CameraCapturer.

BUG=webrtc:6411,b/31686979

Review-Url: https://codereview.webrtc.org/2363043002
Cr-Commit-Position: refs/heads/master@{#14365}
This commit is contained in:
sakal
2016-09-23 01:27:31 -07:00
committed by Commit bot
parent b62dbbe985
commit e87d6734ea

View File

@ -158,6 +158,7 @@ public abstract class CameraCapturer implements CameraVideoCapturer {
synchronized (stateLock) {
if (session != currentSession) {
Logging.w(TAG, "onTextureFrameCaptured from another session.");
surfaceHelper.returnTextureFrame();
return;
}
if (!firstFrameObserved) {