From 94f1d4cd55faf2271991e49e099d82385ba523d2 Mon Sep 17 00:00:00 2001 From: "braveyao@webrtc.org" Date: Wed, 7 May 2014 02:57:13 +0000 Subject: [PATCH] Fix odd codes in video_capture on Mac. BUG=3272 TEST=vie_auto_test R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/16429004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6070 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../mac/qtkit/video_capture_qtkit_info_objc.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/video_capture/mac/qtkit/video_capture_qtkit_info_objc.mm b/webrtc/modules/video_capture/mac/qtkit/video_capture_qtkit_info_objc.mm index 7b46aec19..2b18e1eca 100644 --- a/webrtc/modules/video_capture/mac/qtkit/video_capture_qtkit_info_objc.mm +++ b/webrtc/modules/video_capture/mac/qtkit/video_capture_qtkit_info_objc.mm @@ -155,11 +155,14 @@ using namespace webrtc; - (void)checkOSSupported { Class osSupportedTest = NSClassFromString(@"QTCaptureSession"); - _OSSupportedInfo = NO; if(nil == osSupportedTest) { + _OSSupportedInfo = NO; + } + else + { + _OSSupportedInfo = YES; } - _OSSupportedInfo = YES; } /// ***** Retrieves the number of capture devices currently available