aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutput.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:15:40 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:15:40 +0000
commita2380928dbc4d46c7bc3104df2dee47219db4b93 (patch)
tree2b4295db27427923bdaf8df0b01a14b16f34f258 /src/audioOutput.c
parent2bd2957a7a4c57dd403b2d997802adb053e26fe6 (diff)
downloadmpd-a2380928dbc4d46c7bc3104df2dee47219db4b93.tar.gz
mpd-a2380928dbc4d46c7bc3104df2dee47219db4b93.tar.xz
mpd-a2380928dbc4d46c7bc3104df2dee47219db4b93.zip
use size_t for pcm_sizeOfConvBuffer() result
In my previous patch set, I forgot to change the pcm_sizeOfConvBuffer() invocation in convertAudioFormat() to also use size_t. git-svn-id: https://svn.musicpd.org/mpd/trunk@7292 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutput.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audioOutput.c b/src/audioOutput.c
index d2fb2d776..f0515979e 100644
--- a/src/audioOutput.c
+++ b/src/audioOutput.c
@@ -184,11 +184,11 @@ int openAudioOutput(AudioOutput * audioOutput, AudioFormat * audioFormat)
static void convertAudioFormat(AudioOutput * audioOutput, char **chunkArgPtr,
int *sizeArgPtr)
{
- int size = pcm_sizeOfConvBuffer(&(audioOutput->inAudioFormat),
- *sizeArgPtr,
- &(audioOutput->outAudioFormat));
+ size_t size = pcm_sizeOfConvBuffer(&(audioOutput->inAudioFormat),
+ *sizeArgPtr,
+ &(audioOutput->outAudioFormat));
- if (size > audioOutput->convBufferLen) {
+ if (size > (size_t)audioOutput->convBufferLen) {
audioOutput->convBuffer =
xrealloc(audioOutput->convBuffer, size);
audioOutput->convBufferLen = size;