DescriptionAndroid: Drop old frame in SurfaceTextureHelper.startListening()
Drop any pending texture frame when SurfaceTextureHelper.startListening()
is called because the frame might be from the previous
startListening()/stopListening() capture session. This typically happens
when switching between the front/back camera, and an old frame will get
incorrect rotation and mirroring because of the front/back camera
mismatch.
Dropping the frame in SurfaceTextureHelper also removes the need for
the |dropNextFrame| logic in VideoCapturerAndroid.
R=perkj@webrtc.org
Committed: https://chromium.googlesource.com/external/webrtc/+/181310fb6fe2aff416b112b7e9945d651566fab0
Patch Set 1 #
Messages
Total messages: 12 (6 generated)
|