diff --git a/talk/examples/ios/AppRTCDemo/APPRTCAppClient.m b/talk/examples/ios/AppRTCDemo/APPRTCAppClient.m index 93f0d36a3..93f693f45 100644 --- a/talk/examples/ios/AppRTCDemo/APPRTCAppClient.m +++ b/talk/examples/ios/AppRTCDemo/APPRTCAppClient.m @@ -34,7 +34,7 @@ @interface APPRTCAppClient () -@property(nonatomic, assign) dispatch_queue_t backgroundQueue; +@property(nonatomic, strong) dispatch_queue_t backgroundQueue; @property(nonatomic, copy) NSString *baseURL; @property(nonatomic, strong) GAEChannelClient *gaeChannel; @property(nonatomic, copy) NSString *postMessageUrl; @@ -52,7 +52,6 @@ - (id)init { if (self = [super init]) { _backgroundQueue = dispatch_queue_create("RTCBackgroundQueue", NULL); - dispatch_retain(_backgroundQueue); _sendQueue = [NSMutableArray array]; // Uncomment to see Request/Response logging. // _verboseLogging = YES; @@ -60,10 +59,6 @@ return self; } -- (void)dealloc { - dispatch_release(_backgroundQueue); -} - #pragma mark - Public methods - (void)connectToRoom:(NSURL *)url { diff --git a/webrtc/build/common.gypi b/webrtc/build/common.gypi index 17516f49d..e8ba84227 100644 --- a/webrtc/build/common.gypi +++ b/webrtc/build/common.gypi @@ -133,6 +133,7 @@ 'enable_android_opensl%': 0, }], ['OS=="ios"', { + 'build_libjpeg%': 0, 'enable_protobuf%': 0, 'include_tests%': 0, }], diff --git a/webrtc/modules/video_capture/ios/video_capture_ios_objc.mm b/webrtc/modules/video_capture/ios/video_capture_ios_objc.mm index 67cc5d1df..5b8d69786 100644 --- a/webrtc/modules/video_capture/ios/video_capture_ios_objc.mm +++ b/webrtc/modules/video_capture/ios/video_capture_ios_objc.mm @@ -39,7 +39,7 @@ using namespace webrtc::videocapturemodule; AVCaptureVideoDataOutput* captureOutput = [[AVCaptureVideoDataOutput alloc] init]; [captureOutput setSampleBufferDelegate:self - queue:dispatch_get_current_queue()]; + queue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)]; NSString* key = (NSString*)kCVPixelBufferPixelFormatTypeKey; NSNumber* val = [NSNumber diff --git a/webrtc/modules/video_capture/video_capture.gypi b/webrtc/modules/video_capture/video_capture.gypi index 6086fb942..cf58295b2 100644 --- a/webrtc/modules/video_capture/video_capture.gypi +++ b/webrtc/modules/video_capture/video_capture.gypi @@ -126,6 +126,15 @@ 'ios/video_capture_ios_objc.h', 'ios/video_capture_ios_objc.mm', ], + 'all_dependent_settings': { + 'xcode_settings': { + 'OTHER_LDFLAGS': [ + '-framework AVFoundation', + '-framework CoreMedia', + '-framework CoreVideo', + ], + }, + }, }], # ios ], # conditions }], # include_internal_video_capture