diff options
author | David Robillard <d@drobilla.net> | 2015-11-08 13:03:25 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-11 15:41:21 -0500 |
commit | 439e47da1a179f62ce9e6601851b4f90381da0de (patch) | |
tree | fc50a8ef8ae37fbf1c7ae978d9c97f08bffcf68d /libjack | |
parent | f7849bbbd472f76ce428477626f1a7a998f9a97e (diff) | |
download | jack1-439e47da1a179f62ce9e6601851b4f90381da0de.tar.gz |
Set driver port order metadata
This allows clients to deterministically show ports in the correct order
when there are more than 9 ports (where the lack of leading zeros breaks
sorting by name).
Diffstat (limited to 'libjack')
-rw-r--r-- | libjack/client.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libjack/client.c b/libjack/client.c index 808e8dc..e3969fd 100644 --- a/libjack/client.c +++ b/libjack/client.c @@ -295,10 +295,15 @@ jack_client_deliver_request (const jack_client_t *client, jack_request_t *req) { /* indirect through the function pointer that was set either * by jack_client_open() or by jack_new_client_request() in - * the server. + * the server. possibly NULL during driver port registration, + * in which case we don't care about request delivery. */ - return client->deliver_request (client->deliver_arg, req); + if (client->deliver_request) { + return client->deliver_request (client->deliver_arg, req); + } + + return 0; } #if JACK_USE_MACH_THREADS |