mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:45:41 +01:00
Fixed removal of hidden connections
This commit is contained in:
parent
3180b94099
commit
6228fe8e07
1 changed files with 4 additions and 0 deletions
|
@ -237,6 +237,8 @@ static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *cinfo,
|
|||
snd_seq_port_subscribe_t subs;
|
||||
if (snd_seq_get_any_port_info(seq, query.addr.client, query.addr.port, &port) < 0)
|
||||
continue;
|
||||
if (!(port.capability & SND_SEQ_PORT_CAP_SUBS_READ))
|
||||
continue;
|
||||
if (port.capability & SND_SEQ_PORT_CAP_NO_EXPORT)
|
||||
continue;
|
||||
memset(&subs, 0, sizeof(subs));
|
||||
|
@ -256,6 +258,8 @@ static void remove_connection(snd_seq_t *seq, snd_seq_client_info_t *cinfo,
|
|||
snd_seq_port_subscribe_t subs;
|
||||
if (snd_seq_get_any_port_info(seq, query.addr.client, query.addr.port, &port) < 0)
|
||||
continue;
|
||||
if (!(port.capability & SND_SEQ_PORT_CAP_SUBS_WRITE))
|
||||
continue;
|
||||
if (port.capability & SND_SEQ_PORT_CAP_NO_EXPORT)
|
||||
continue;
|
||||
memset(&subs, 0, sizeof(subs));
|
||||
|
|
Loading…
Reference in a new issue