Small fixes to get ALSA sequencer and example code for alsa-lib (playmidi1) working again.

This commit is contained in:
Frank van de Pol 1999-05-23 18:34:46 +00:00
parent e0741a5863
commit 0b124b53bf
2 changed files with 23 additions and 16 deletions

View file

@ -203,6 +203,8 @@ int snd_seq_set_client_info(void *handle, snd_seq_client_info_t * info)
seq = (snd_seq_t *) handle;
if (!seq || !info)
return -EINVAL;
info->client = seq->client;
info->type = USER_CLIENT;
if (ioctl(seq->fd, SND_SEQ_IOCTL_SET_CLIENT_INFO, info) < 0)
return -errno;
return 0;