mirror of
https://github.com/mpv-player/mpv
synced 2025-02-04 14:11:53 +00:00
ao_jack: only auto-connect to audio ports
This prevents ao_jack from auto-connecting to MIDI ports (or other, hypothetical future port types).
This commit is contained in:
parent
3744d0bda9
commit
fed0ea111b
@ -143,7 +143,8 @@ connect_to_outports(struct ao *ao)
|
|||||||
if (!port_name)
|
if (!port_name)
|
||||||
port_flags |= JackPortIsPhysical;
|
port_flags |= JackPortIsPhysical;
|
||||||
|
|
||||||
matching_ports = jack_get_ports(p->client, port_name, NULL, port_flags);
|
const char *port_type = JACK_DEFAULT_AUDIO_TYPE; // exclude MIDI ports
|
||||||
|
matching_ports = jack_get_ports(p->client, port_name, port_type, port_flags);
|
||||||
|
|
||||||
if (!matching_ports || !matching_ports[0]) {
|
if (!matching_ports || !matching_ports[0]) {
|
||||||
MP_FATAL(ao, "no ports to connect to\n");
|
MP_FATAL(ao, "no ports to connect to\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user