mediastream_cocoa.m: use dispatch_get_global_queue instead of...

mediastream_cocoa.m: use dispatch_get_global_queue instead of dispatch_get_main_queue in order to display windows without blocking the main queue
parent 586249bd
......@@ -53,7 +53,7 @@ extern int apple_main(int argc, char **argv);
NSLog(@"Disabling App nap for tester");
self->activity = [[[NSProcessInfo processInfo] beginActivityWithOptions:0x00FFFFFF reason:@"No app nap for ms2 tester"] retain];
}
dispatch_async(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), ^{
[self runLoop];
});
}
......
......@@ -37,7 +37,7 @@ extern void clear_mediastreams(MediastreamDatas* args);
-(void)applicationWillFinishLaunching: (NSNotification*) aNotification
{
dispatch_async(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), ^{
[self run_mediastreamer_loop];
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment