aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-22 20:48:32 +0200
committerDavid Robillard <d@drobilla.net>2018-09-22 20:48:32 +0200
commitc5b75a160cdae33c08d32ea82486ae599a594712 (patch)
tree6691bc4c307361dbc8bb8ee4f18412b87a65d0cf
parent387336f8c9028bbba715bfb15517890d4a740eb3 (diff)
downloadjalv-c5b75a160cdae33c08d32ea82486ae599a594712.tar.gz
jalv-c5b75a160cdae33c08d32ea82486ae599a594712.tar.bz2
jalv-c5b75a160cdae33c08d32ea82486ae599a594712.zip
Print real JACK name instead of requested name
-rw-r--r--src/jack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jack.c b/src/jack.c
index a763040..7abd42d 100644
--- a/src/jack.c
+++ b/src/jack.c
@@ -334,7 +334,6 @@ jalv_backend_init(Jalv* jalv)
if (strlen(jack_name) >= (unsigned)jack_client_name_size() - 1) {
jack_name[jack_client_name_size() - 1] = '\0';
}
- printf("JACK Name: %s\n", jack_name);
/* Connect to JACK */
#ifdef JALV_JACK_SESSION
@@ -360,6 +359,8 @@ jalv_backend_init(Jalv* jalv)
return NULL;
}
+ printf("JACK Name: %s\n", jack_get_client_name(client));
+
/* Set audio engine properties */
jalv->sample_rate = jack_get_sample_rate(client);
jalv->block_length = jack_get_buffer_size(client);