summaryrefslogtreecommitdiff
path: root/libjack
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-11-08 13:03:25 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-11 15:41:21 -0500
commit439e47da1a179f62ce9e6601851b4f90381da0de (patch)
treefc50a8ef8ae37fbf1c7ae978d9c97f08bffcf68d /libjack
parentf7849bbbd472f76ce428477626f1a7a998f9a97e (diff)
downloadjack1-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.c9
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