Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
fix for SWF-16794
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Moldover committed Aug 16, 2017
1 parent 9833991 commit 53b3643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/PBJVision.m
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ - (void)_setOrientationForConnection:(AVCaptureConnection *)connection
break;
}

[connection setVideoOrientation:orientation];
if(orientation != connection.videoOrientation) {
[connection setVideoOrientation:orientation];
}
}

- (void)_setCameraMode:(PBJCameraMode)cameraMode cameraDevice:(PBJCameraDevice)cameraDevice outputFormat:(PBJOutputFormat)outputFormat
Expand Down

0 comments on commit 53b3643

Please sign in to comment.