summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-17 00:21:59 +0000
committertkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-17 00:21:59 +0000
commitfbdd355e5f6b9f7e9571c482fcca2ba5d7ba3446 (patch)
tree1bd5103ce105b80204dd0749e98a1a3715e92076 /modules
parentbc9711fc4ca885a5e6c032bfd8a84e6ac5a793d9 (diff)
downloadwebrtc-fbdd355e5f6b9f7e9571c482fcca2ba5d7ba3446.tar.gz
Fixes up rtc so that it compiles on iOS 8 SDK.
Adds support for UIInterfaceOrientationUnknown (new with in SDK) and makes it the same as UIInterfaceOrientationPortrait. R=noahric@google.com, tkchin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/13029004 Patch from David Maclachlan <dmaclach@chromium.org>. git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6712 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'modules')
-rw-r--r--modules/video_capture/ios/rtc_video_capture_ios_objc.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/video_capture/ios/rtc_video_capture_ios_objc.mm b/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
index 6995daf9..4e334d4c 100644
--- a/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
+++ b/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
@@ -220,6 +220,9 @@ using namespace webrtc::videocapturemodule;
return;
switch ([UIApplication sharedApplication].statusBarOrientation) {
case UIInterfaceOrientationPortrait:
+#if defined(__IPHONE_8_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
+ case UIInterfaceOrientationUnknown:
+#endif
_connection.videoOrientation = AVCaptureVideoOrientationPortrait;
break;
case UIInterfaceOrientationPortraitUpsideDown: