Commit 665eab26 authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

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
parent fe36122c
...@@ -498,19 +498,19 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * ...@@ -498,19 +498,19 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
{ {
int pause = 0; int pause = 0;
int quit = 0; int quit = 0;
int bbp = buffered_before_play; unsigned int bbp = buffered_before_play;
int doCrossFade = 0; int doCrossFade = 0;
int crossFadeChunks = 0; unsigned int crossFadeChunks = 0;
int fadePosition; unsigned int fadePosition;
int nextChunk = -1; int nextChunk = -1;
int test; unsigned int test;
int decodeWaitedOn = 0; int decodeWaitedOn = 0;
static const char silence[CHUNK_SIZE]; static const char silence[CHUNK_SIZE];
double sizeToTime = 0.0; double sizeToTime = 0.0;
int previousMetadataChunk = -1; int previousMetadataChunk = -1;
MetadataChunk currentMetadataChunk; MetadataChunk currentMetadataChunk;
int currentChunkSent = 1; int currentChunkSent = 1;
int end; unsigned int end;
int next = -1; int next = -1;
if (waitOnDecode(pc, dc, cb, &decodeWaitedOn) < 0) if (waitOnDecode(pc, dc, cb, &decodeWaitedOn) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment