From 98c882c5a545c3dd819655c9869f6928274df8a3 Mon Sep 17 00:00:00 2001 From: Thomas Brand Date: Wed, 20 Feb 2019 21:03:01 +0100 Subject: [PATCH] Add option JackNoStartServer For this client program, it's hard to imagine a case where autostarting a jack server is reasonable just to query or set the bufsize. This is in accordance with programs like jack_lsp, jack_connect (do not start a server if none is running). --- example-clients/bufsize.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example-clients/bufsize.c b/example-clients/bufsize.c index cc5984f4..903beadd 100644 --- a/example-clients/bufsize.c +++ b/example-clients/bufsize.c @@ -86,11 +86,12 @@ void parse_arguments(int argc, char *argv[]) int main(int argc, char *argv[]) { int rc; + jack_options_t options = JackNoStartServer; parse_arguments(argc, argv); /* become a JACK client */ - if ((client = jack_client_open(package, JackNullOption, NULL)) == 0) { + if ((client = jack_client_open(package, options, NULL)) == 0) { fprintf(stderr, "JACK server not running?\n"); exit(1); }