mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00: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:
parent
c000a08de2
commit
f210244a1c
@ -169,7 +169,7 @@ static int init(struct ao *ao)
|
|||||||
struct priv *p = ao->priv;
|
struct priv *p = ao->priv;
|
||||||
const char **matching_ports = NULL;
|
const char **matching_ports = NULL;
|
||||||
char *port_name = p->cfg_port && p->cfg_port[0] ? p->cfg_port : 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 port_flags = JackPortIsInput;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user