use unsigned integers in decoder.c

Use unsigned integers in decoderParent() for chunk numbers which
cannot be negative.

git-svn-id: https://svn.musicpd.org/mpd/trunk@7226 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Max Kellermann 2008-04-12 04:06:17 +00:00 committed by Eric Wong
parent fe36122c8c
commit 665eab26f3
1 changed files with 5 additions and 5 deletions

View File

@ -498,19 +498,19 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
{
int pause = 0;
int quit = 0;
int bbp = buffered_before_play;
unsigned int bbp = buffered_before_play;
int doCrossFade = 0;
int crossFadeChunks = 0;
int fadePosition;
unsigned int crossFadeChunks = 0;
unsigned int fadePosition;
int nextChunk = -1;
int test;
unsigned int test;
int decodeWaitedOn = 0;
static const char silence[CHUNK_SIZE];
double sizeToTime = 0.0;
int previousMetadataChunk = -1;
MetadataChunk currentMetadataChunk;
int currentChunkSent = 1;
int end;
unsigned int end;
int next = -1;
if (waitOnDecode(pc, dc, cb, &decodeWaitedOn) < 0)