Android: Fix synchronization problems in VideoFrame release.

Also fixes a small bug in EglRenderer where if it was passed a custom
frame, it would leak a reference.

BUG=b/64887218

Review-Url: https://codereview.webrtc.org/3003533002
Cr-Commit-Position: refs/heads/master@{#19432}
This commit is contained in:
sakal
2017-08-21 08:02:58 -07:00
committed by Commit Bot
parent 139cf38223
commit 2fe9dfae20
4 changed files with 26 additions and 11 deletions

View File

@ -639,7 +639,7 @@ public class EglRenderer implements VideoRenderer.Callbacks, VideoSink {
}
notifyCallbacks(frame, isYuvBuffer, yuvTextures, shouldRenderFrame);
frame.release();
buffer.release();
}
private void notifyCallbacks(