mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fixed wrong return value in snd_seq_drain_output
This commit is contained in:
parent
3ede638092
commit
d6b4cfe7f2
1 changed files with 1 additions and 1 deletions
|
|
@ -2585,7 +2585,7 @@ int snd_seq_drain_output(snd_seq_t *seq)
|
|||
while (seq->obufused > 0) {
|
||||
result = seq->ops->write(seq, seq->obuf, seq->obufused);
|
||||
if (result < 0)
|
||||
return -result;
|
||||
return result;
|
||||
if ((size_t)result < seq->obufused)
|
||||
memmove(seq->obuf, seq->obuf + result, seq->obufused - result);
|
||||
seq->obufused -= result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue