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:
braveyao@webrtc.org 2014-09-26 22:50:06 +00:00
parent 5d0071fb1f
commit 0a256acb67

View File

@ -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;