Added missing reference to stream in snd_rawmidi_stream_flush

This commit is contained in:
Jaroslav Kysela 2000-06-18 13:01:30 +00:00
parent b60673fe68
commit 7d01263a06

View file

@ -171,7 +171,7 @@ int snd_rawmidi_stream_flush(snd_rawmidi_t *rmidi, int str)
return -EINVAL;
if (str < 0 || str > 1)
return -EINVAL;
if (ioctl(rmidi->fd, SND_RAWMIDI_IOCTL_STREAM_FLUSH) < 0)
if (ioctl(rmidi->fd, SND_RAWMIDI_IOCTL_STREAM_FLUSH, &str) < 0)
return -errno;
return 0;
}