mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
fix parameters not written to config file immediately
This commit is contained in:
parent
9f14b4e9dd
commit
5a7090ccb0
1 changed files with 7 additions and 4 deletions
|
|
@ -3872,6 +3872,8 @@ const LinphoneVideoPolicy *linphone_core_get_video_policy(LinphoneCore *lc){
|
|||
**/
|
||||
void linphone_core_enable_video_preview(LinphoneCore *lc, bool_t val){
|
||||
lc->video_conf.show_local=val;
|
||||
if (linphone_core_ready(lc))
|
||||
lp_config_set_int(lc->config,"video","show_local",val);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -3897,6 +3899,9 @@ void linphone_core_enable_self_view(LinphoneCore *lc, bool_t val){
|
|||
if (call && call->videostream){
|
||||
video_stream_enable_self_view(call->videostream,val);
|
||||
}
|
||||
if (linphone_core_ready(lc)){
|
||||
lp_config_set_int(lc->config,"video","self_view",val);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -4529,7 +4534,7 @@ void rtp_config_uninit(LinphoneCore *lc)
|
|||
lp_config_set_int(lc->config,"rtp","video_jitt_comp_enabled",config->video_adaptive_jitt_comp_enabled);
|
||||
}
|
||||
|
||||
void sound_config_uninit(LinphoneCore *lc)
|
||||
static void sound_config_uninit(LinphoneCore *lc)
|
||||
{
|
||||
sound_config_t *config=&lc->sound_conf;
|
||||
ms_free(config->cards);
|
||||
|
|
@ -4541,13 +4546,11 @@ void sound_config_uninit(LinphoneCore *lc)
|
|||
ms_snd_card_manager_destroy();
|
||||
}
|
||||
|
||||
void video_config_uninit(LinphoneCore *lc)
|
||||
static void video_config_uninit(LinphoneCore *lc)
|
||||
{
|
||||
lp_config_set_string(lc->config,"video","size",video_size_get_name(linphone_core_get_preferred_video_size(lc)));
|
||||
lp_config_set_int(lc->config,"video","display",lc->video_conf.display);
|
||||
lp_config_set_int(lc->config,"video","capture",lc->video_conf.capture);
|
||||
lp_config_set_int(lc->config,"video","show_local",linphone_core_video_preview_enabled(lc));
|
||||
lp_config_set_int(lc->config,"video","self_view",linphone_core_self_view_enabled(lc));
|
||||
if (lc->video_conf.cams)
|
||||
ms_free(lc->video_conf.cams);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue