summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 85e768b..910e862 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;