mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
allow setting a null ring file
This commit is contained in:
parent
6cd830fda4
commit
af8046d7fd
1 changed files with 3 additions and 1 deletions
|
|
@ -2863,8 +2863,10 @@ void linphone_core_set_sound_source(LinphoneCore *lc, char source)
|
|||
void linphone_core_set_ring(LinphoneCore *lc,const char *path){
|
||||
if (lc->sound_conf.local_ring!=0){
|
||||
ms_free(lc->sound_conf.local_ring);
|
||||
lc->sound_conf.local_ring=NULL;
|
||||
}
|
||||
lc->sound_conf.local_ring=ms_strdup(path);
|
||||
if (path)
|
||||
lc->sound_conf.local_ring=ms_strdup(path);
|
||||
if ( linphone_core_ready(lc) && lc->sound_conf.local_ring)
|
||||
lp_config_set_string(lc->config,"sound","local_ring",lc->sound_conf.local_ring);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue