VideoCapturerAndroid: Force setDisplayOrientation to 0

BUG=b/27994417
R=glaznev@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#12695}
This commit is contained in:
Magnus Jedvert
2016-05-12 10:07:03 +02:00
parent 7f216b71aa
commit 060aa57084

View File

@ -556,6 +556,8 @@ public class VideoCapturerAndroid implements
} }
camera.setParameters(parameters); camera.setParameters(parameters);
// Calculate orientation manually and send it as CVO instead.
camera.setDisplayOrientation(0 /* degrees */);
if (!isCapturingToTexture) { if (!isCapturingToTexture) {
queuedBuffers.clear(); queuedBuffers.clear();
final int frameSize = captureFormat.frameSize(); final int frameSize = captureFormat.frameSize();