Commit 26872b93 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix linphone_factory_get_ring_resources_dir() that did not return the correct...

Fix linphone_factory_get_ring_resources_dir() that did not return the correct path if the sound_resources_dir has not been set.
parent 2aa9087b
......@@ -264,8 +264,12 @@ void linphone_factory_set_sound_resources_dir(LinphoneFactory *factory, const ch
const char * linphone_factory_get_ring_resources_dir(LinphoneFactory *factory) {
if (factory->ring_resources_dir) return factory->ring_resources_dir;
if (factory->sound_resources_dir){
STRING_TRANSFER(factory->cached_sound_resources_dir, bctbx_strdup_printf("%s/rings", factory->sound_resources_dir));
return factory->cached_sound_resources_dir;
STRING_TRANSFER(factory->cached_ring_resources_dir, bctbx_strdup_printf("%s/rings", factory->sound_resources_dir));
return factory->cached_ring_resources_dir;
}
if (factory->top_resources_dir) {
STRING_TRANSFER(factory->cached_ring_resources_dir, bctbx_strdup_printf("%s/sounds/linphone/rings", factory->top_resources_dir));
return factory->cached_ring_resources_dir;
}
return PACKAGE_RING_DIR;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment