mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
jack: only allow connection of same type
This commit is contained in:
parent
cd2c8ceb31
commit
f777c04ea6
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue