From 64abf84a9ea907736a1403479253d3c535a97d25 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 6 Nov 2015 10:51:50 +0100 Subject: [PATCH] Assistant: remove outdated hack (disabling preview before resetting core is not needed anymore, it was fixed in liblinphone) --- Classes/AssistantView.m | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Classes/AssistantView.m b/Classes/AssistantView.m index 5a7c66f8b..adf9af758 100644 --- a/Classes/AssistantView.m +++ b/Classes/AssistantView.m @@ -141,12 +141,7 @@ static UICompositeViewDescription *compositeDescription = nil; linphone_core_set_provisioning_uri([LinphoneManager getLc], fullPath.UTF8String); [[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); [self resetLiblinphone]; - linphone_core_enable_video_preview([LinphoneManager getLc], hasPreview); // we will set the new default proxy config in the assistant linphone_core_set_default_proxy_config([LinphoneManager getLc], NULL); }