diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rmd_jack.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rmd_jack.c b/src/rmd_jack.c index e1a5a0e..13239bb 100644 --- a/src/rmd_jack.c +++ b/src/rmd_jack.c @@ -146,7 +146,13 @@ int rmdStartJackClient(JackData *jdata) snprintf( pidbuf, 8, "%d", pid ); strcat(rmd_client_name, pidbuf); - if ((jdata->client = jack_client_new(rmd_client_name)) == 0) { + jack_options_t options = JackUseExactName; + + if (getenv ("JACK_START_SERVER") == NULL) { + options |= JackNoStartServer; + } + + if ((jdata->client = jack_client_open(rmd_client_name, options, NULL)) == 0) { fprintf(stderr, "Could not create new client!\n" "Make sure that Jack server is running!\n"); return 15; |