diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -158,12 +158,6 @@ int main(int argc, char *argv[]) goto out; } - /* Set audio path preferring the one given in -p argument (if any) */ - if (audio_path) - play_set_path(audio_path); - else if (str_isset(conf_config()->audio.audio_path)) - play_set_path(conf_config()->audio.audio_path); - /* * Initialise the top-level baresip struct, must be * done AFTER configuration is complete. @@ -174,6 +168,14 @@ int main(int argc, char *argv[]) goto out; } + /* Set audio path preferring the one given in -p argument (if any) */ + if (audio_path) + play_set_path(baresip_player(), audio_path); + else if (str_isset(conf_config()->audio.audio_path)) { + play_set_path(baresip_player(), + conf_config()->audio.audio_path); + } + /* NOTE: must be done after all arguments are processed */ if (modc) { size_t i; |