mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Added missing reference to stream in snd_rawmidi_stream_flush
This commit is contained in:
parent
b60673fe68
commit
7d01263a06
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue