Changeset 5628
- Timestamp:
- Jul 18, 2017 11:55:25 AM (7 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-videodev/darwin_dev.m
r5498 r5628 891 891 /* Create renderer stream here */ 892 892 893 status = darwin_init_view(strm);894 if (status != PJ_SUCCESS)895 goto on_error;893 dispatch_sync_on_main_queue(^{ 894 darwin_init_view(strm); 895 }); 896 896 897 897 if (!strm->vout_delegate) { … … 1000 1000 1001 1001 #if TARGET_OS_IPHONE 1002 /* Create view, if none */1003 if (!strm->render_view)1004 darwin_init_view(strm);1005 1006 1002 /* Preview layer instantiation should be in main thread! */ 1007 1003 dispatch_sync_on_main_queue(^{ 1004 /* Create view, if none */ 1005 if (!strm->render_view) 1006 darwin_init_view(strm); 1007 1008 1008 /* Create preview layer */ 1009 1009 AVCaptureVideoPreviewLayer *prev_layer = -
pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m
r5542 r5628 190 190 if (dev_ori == prev_ori) return; 191 191 192 NSLog(@"Device orientation changed: % d", (prev_ori = dev_ori));192 NSLog(@"Device orientation changed: %ld", (prev_ori = dev_ori)); 193 193 194 194 if (dev_ori >= UIDeviceOrientationPortrait && … … 272 272 alert.alertAction = @"Activate app"; 273 273 274 [[UIApplication sharedApplication] presentLocalNotificationNow:alert]; 274 dispatch_async(dispatch_get_main_queue(), 275 ^{[[UIApplication sharedApplication] 276 presentLocalNotificationNow:alert];}); 275 277 } 276 278
Note: See TracChangeset
for help on using the changeset viewer.