aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-10 21:31:13 +0100
committerMax Kellermann <max@duempel.org>2009-03-10 21:31:13 +0100
commitcff29f5e8696c49c00d9761b683c9721dc670edb (patch)
tree40109f8ab7e97856237250fe0a49d6300422c6f9
parent855054fee1884f43aeca18b0d1218f9c9220f5e7 (diff)
downloadmpd-cff29f5e8696c49c00d9761b683c9721dc670edb.tar.gz
mpd-cff29f5e8696c49c00d9761b683c9721dc670edb.tar.xz
mpd-cff29f5e8696c49c00d9761b683c9721dc670edb.zip
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.
Diffstat (limited to '')
-rw-r--r--src/output/alsa_plugin.c3
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;