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
This commit is contained in:
parent
2bd2957a7a
commit
a2380928db
@ -184,11 +184,11 @@ int openAudioOutput(AudioOutput * audioOutput, AudioFormat * audioFormat)
|
|||||||
static void convertAudioFormat(AudioOutput * audioOutput, char **chunkArgPtr,
|
static void convertAudioFormat(AudioOutput * audioOutput, char **chunkArgPtr,
|
||||||
int *sizeArgPtr)
|
int *sizeArgPtr)
|
||||||
{
|
{
|
||||||
int size = pcm_sizeOfConvBuffer(&(audioOutput->inAudioFormat),
|
size_t size = pcm_sizeOfConvBuffer(&(audioOutput->inAudioFormat),
|
||||||
*sizeArgPtr,
|
*sizeArgPtr,
|
||||||
&(audioOutput->outAudioFormat));
|
&(audioOutput->outAudioFormat));
|
||||||
|
|
||||||
if (size > audioOutput->convBufferLen) {
|
if (size > (size_t)audioOutput->convBufferLen) {
|
||||||
audioOutput->convBuffer =
|
audioOutput->convBuffer =
|
||||||
xrealloc(audioOutput->convBuffer, size);
|
xrealloc(audioOutput->convBuffer, size);
|
||||||
audioOutput->convBufferLen = size;
|
audioOutput->convBufferLen = size;
|
||||||
|
Loading…
Reference in New Issue
Block a user