VideoCapturerAndroid: Report onFirstFrameAvailable() for textures as well

We currently only trigger onFirstFrameAvailable() for byte buffer frames.

R=perkj@webrtc.org

Review URL: https://codereview.webrtc.org/1701993002 .

Cr-Commit-Position: refs/heads/master@{#11670}
This commit is contained in:
Magnus Jedvert
2016-02-18 15:47:47 +01:00
parent 5199c74d25
commit f45381e1e5
2 changed files with 19 additions and 3 deletions

View File

@ -678,9 +678,13 @@ public class VideoCapturerAndroid implements
return;
}
if (dropNextFrame) {
surfaceHelper.returnTextureFrame();
dropNextFrame = false;
return;
surfaceHelper.returnTextureFrame();
dropNextFrame = false;
return;
}
if (eventsHandler != null && !firstFrameReported) {
eventsHandler.onFirstFrameAvailable();
firstFrameReported = true;
}
int rotation = getFrameOrientation();