Getting orientation is not working properly. VideoCaptureImpl::RotationFromDegrees returns -1 in case fails not 0. So we need to change the if statement.
BUG=3869 TEST=Manual R=glaznev@webrtc.org Review URL: https://webrtc-codereview.appspot.com/25699004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7311 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
5d0071fb1f
commit
0a256acb67
@ -222,7 +222,8 @@ int32_t DeviceInfoAndroid::GetOrientation(
|
||||
VideoCaptureRotation& orientation) {
|
||||
const AndroidCameraInfo* info = FindCameraInfoByName(deviceUniqueIdUTF8);
|
||||
if (info == NULL ||
|
||||
!VideoCaptureImpl::RotationFromDegrees(info->orientation, &orientation)) {
|
||||
VideoCaptureImpl::RotationFromDegrees(info->orientation,
|
||||
&orientation) != 0) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user