diff options
-rw-r--r-- | src/output/alsa_plugin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c index e8d86b4cd..cfb1f261f 100644 --- a/src/output/alsa_plugin.c +++ b/src/output/alsa_plugin.c @@ -490,12 +490,11 @@ static size_t alsa_play(void *data, const void *chunk, size_t size, GError **error) { struct alsa_data *ad = data; - int ret; size /= ad->frame_size; while (true) { - ret = ad->writei(ad->pcm, chunk, size); + snd_pcm_sframes_t ret = ad->writei(ad->pcm, chunk, size); if (ret > 0) return ret * ad->frame_size; |