mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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 ||
|
||||
!(src->port.flags & JackPortIsOutput) ||
|
||||
!(dst->port.flags & JackPortIsInput)) {
|
||||
!(dst->port.flags & JackPortIsInput) ||
|
||||
src->port.type_id != dst->port.type_id) {
|
||||
res = -EINVAL;
|
||||
goto exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue