1
mirror of https://github.com/mpv-player/mpv synced 2024-10-22 08:51:57 +02:00

ao_jack: don’t force exact client name

Trying to connect multiple mpv clients to JACK with the
JackUseExactName option would fail unless the user manually
specifies a unique client name. This changes the behavior
to automatically generate a unique name if the requested
one is already in use.
This commit is contained in:
Martin Herkt 2013-09-30 14:42:55 +02:00
parent c000a08de2
commit f210244a1c

View File

@ -169,7 +169,7 @@ static int init(struct ao *ao)
struct priv *p = ao->priv;
const char **matching_ports = NULL;
char *port_name = p->cfg_port && p->cfg_port[0] ? p->cfg_port : NULL;
jack_options_t open_options = JackUseExactName;
jack_options_t open_options = JackNullOption;
int port_flags = JackPortIsInput;
int i;