submodules: fix video preview hanging on some iPad when starting/stopping calls

This commit is contained in:
Gautier Pelloux-Prayer 2015-10-06 12:20:11 +02:00
parent 31c9c5fd0e
commit 3287ffd209
2 changed files with 1 additions and 7 deletions

View file

@ -570,13 +570,7 @@ static UICompositeViewDescription *compositeDescription = nil;
linphone_core_set_provisioning_uri([LinphoneManager getLc],
[fullPath cStringUsingEncoding:[NSString defaultCStringEncoding]]);
[[LinphoneManager instance] lpConfigSetInt:1 forKey:@"transient_provisioning" forSection:@"misc"];
// For some reason, video preview hangs for 15seconds when resetting linphone core from here...
// to avoid it, we disable it before and reenable it after core restart.
BOOL hasPreview = linphone_core_video_preview_enabled([LinphoneManager getLc]);
linphone_core_enable_video_preview([LinphoneManager getLc], FALSE);
[[LinphoneManager instance] resetLinphoneCore];
linphone_core_enable_video_preview([LinphoneManager getLc], hasPreview);
}
#pragma mark - UITextFieldDelegate Functions

@ -1 +1 @@
Subproject commit c0d58391e938eb3a5d53d2d855b29e22ff865c7b
Subproject commit ee187d4cb5de19ae044ab72fe6a2438b0693dc25