jack: improve short name

Search the : backwards so that we can deal with client names with :
in them.

See #714
This commit is contained in:
Wim Taymans 2021-02-12 11:57:27 +01:00
parent 58d2fe4440
commit 8101334b1e

View file

@ -3495,7 +3495,7 @@ const char * jack_port_short_name (const jack_port_t *port)
{ {
struct object *o = (struct object *) port; struct object *o = (struct object *) port;
spa_return_val_if_fail(o != NULL, NULL); spa_return_val_if_fail(o != NULL, NULL);
return strchr(o->port.name, ':') + 1; return rindex(o->port.name, ':') + 1;
} }
SPA_EXPORT SPA_EXPORT