jack: only allow connection of same type

This commit is contained in:
Wim Taymans 2019-09-19 13:16:42 +02:00
parent cd2c8ceb31
commit f777c04ea6

View file

@ -3241,7 +3241,8 @@ int jack_connect (jack_client_t *client,
if (src == NULL || dst == NULL || if (src == NULL || dst == NULL ||
!(src->port.flags & JackPortIsOutput) || !(src->port.flags & JackPortIsOutput) ||
!(dst->port.flags & JackPortIsInput)) { !(dst->port.flags & JackPortIsInput) ||
src->port.type_id != dst->port.type_id) {
res = -EINVAL; res = -EINVAL;
goto exit; goto exit;
} }