commit | 2e3c97ddf5787b12b2550d602a5deaa3d2c96b03 | [log] [tgz] |
---|---|---|
author | tkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Wed Jul 16 19:59:05 2014 +0000 |
committer | tkchin@webrtc.org <tkchin@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Wed Jul 16 19:59:05 2014 +0000 |
tree | f1e3781c62ce89b2f8e0684d2363515df6fa5777 | |
parent | a8d8ad2be6b7c204bbdc8c20a942e0aefb4fa347 [diff] |
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@6706 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm b/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm index 32bca8c..6995daf 100644 --- a/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm +++ b/webrtc/modules/video_capture/ios/rtc_video_capture_ios_objc.mm
@@ -43,7 +43,9 @@ _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];