Runtime guard for iOS7 property.

BUG=3487
R=glaznev@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/19989004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6733 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tkchin@webrtc.org 2014-07-18 17:17:59 +00:00
parent 9343cf67a9
commit ff50debd37

View File

@ -44,7 +44,10 @@ using namespace webrtc::videocapturemodule;
_captureId = captureId; _captureId = captureId;
_captureSession = [[AVCaptureSession alloc] init]; _captureSession = [[AVCaptureSession alloc] init];
#if defined(__IPHONE_7_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0 #if defined(__IPHONE_7_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_7_0
NSString* version = [[UIDevice currentDevice] systemVersion];
if ([version integerValue] >= 7) {
_captureSession.usesApplicationAudioSession = NO; _captureSession.usesApplicationAudioSession = NO;
}
#endif #endif
_captureChanging = NO; _captureChanging = NO;
_captureChangingCondition = [[NSCondition alloc] init]; _captureChangingCondition = [[NSCondition alloc] init];