mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 11:49:31 +00:00
always call linphone_core_set_play_file in tester manager to make sure something is played in pause state
This commit is contained in:
parent
f403bee7c1
commit
902c705954
1 changed files with 4 additions and 3 deletions
|
|
@ -288,17 +288,18 @@ LinphoneCoreManager* linphone_core_manager_init(const char* rc_file) {
|
|||
}
|
||||
#endif
|
||||
|
||||
char *hellopath = bc_tester_res("sounds/hello8000.wav");
|
||||
linphone_core_set_play_file(mgr->lc,hellopath); /*is also used when in pause*/
|
||||
ms_free(hellopath);
|
||||
|
||||
if( manager_count >= 2){
|
||||
char *hellopath = bc_tester_res("sounds/hello8000.wav");
|
||||
char *recordpath = ms_strdup_printf("%s/record_for_lc_%p.wav",bc_tester_get_writable_dir_prefix(),mgr->lc);
|
||||
ms_message("Manager for '%s' using files", rc_file ? rc_file : "--");
|
||||
linphone_core_set_use_files(mgr->lc, TRUE);
|
||||
linphone_core_set_play_file(mgr->lc,hellopath);
|
||||
linphone_core_set_record_file(mgr->lc,recordpath);
|
||||
ms_free(recordpath);
|
||||
ms_free(hellopath);
|
||||
}
|
||||
|
||||
linphone_core_set_user_certificates_path(mgr->lc,bc_tester_get_writable_dir_prefix());
|
||||
|
||||
if (rc_path) ms_free(rc_path);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue