mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
[alsa] Return ALSA the error code from buffer_write, not -1
This commit is contained in:
parent
c36df4fb8e
commit
cd7bf45749
@ -613,7 +613,7 @@ buffer_write(struct alsa_session *as, struct output_data *odata, snd_pcm_sframes
|
||||
nsamp = BTOS(bufsize, as->quality.bits_per_sample, as->quality.channels);
|
||||
ret = snd_pcm_writei(as->hdl, buf, nsamp);
|
||||
if (ret < 0)
|
||||
return -1;
|
||||
return ret;
|
||||
|
||||
avail -= ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user