aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/outputBuffer.c2
-rw-r--r--src/outputBuffer.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index 15b7b26d9..dab233668 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -118,7 +118,7 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
while (datalen) {
if (currentChunk != cb->end) {
- int next = cb->end + 1;
+ unsigned int next = cb->end + 1;
if (next >= buffered_chunks) {
next = 0;
}
diff --git a/src/outputBuffer.h b/src/outputBuffer.h
index 99d3010f0..ab4ccc893 100644
--- a/src/outputBuffer.h
+++ b/src/outputBuffer.h
@@ -38,8 +38,8 @@ typedef struct _OutputBuffer {
mpd_uint16 *volatile chunkSize;
mpd_uint16 *volatile bitRate;
float *volatile times;
- mpd_sint16 volatile begin;
- mpd_sint16 volatile end;
+ mpd_uint16 volatile begin;
+ mpd_uint16 volatile end;
AudioFormat audioFormat;
ConvState convState;
MetadataChunk metadataChunks[BUFFERED_METACHUNKS];