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:
@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user