summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-16 19:59:05 +0000
committertkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-16 19:59:05 +0000
commitbb77419cef4016dc9ec0a154d89fac2bea5e34cb (patch)
tree0401887f2aa5678b3942628f3d8061127ce251ce /modules
parent6111d79329d4fffec4eb6b443dc4e04222dec949 (diff)
downloadwebrtc-bb77419cef4016dc9ec0a154d89fac2bea5e34cb.tar.gz
Compile-time guard for iOS7 specific property.
BUG=3487 R=glaznev@webrtc.org Review URL: https://webrtc-codereview.appspot.com/17969004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6706 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'modules')
-rw-r--r--modules/video_capture/ios/rtc_video_capture_ios_objc.mm2
1 files changed, 2 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 32bca8cf..6995daf9 100644
--- a/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
+++ b/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
@@ -43,7 +43,9 @@ using namespace webrtc::videocapturemodule;
_owner = owner;
_captureId = captureId;
_captureSession = [[AVCaptureSession alloc] init];
+#if defined(__IPHONE_7_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0
_captureSession.usesApplicationAudioSession = NO;
+#endif
_captureChanging = NO;
_captureChangingCondition = [[NSCondition alloc] init];