From cff29f5e8696c49c00d9761b683c9721dc670edb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Mar 2009 21:31:13 +0100 Subject: alsa: use snd_pcm_sframes_t instead of int snd_pcm_writei() returns the type snd_pcm_sframes_t, not int. Use the correct variable type. --- src/output/alsa_plugin.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3