aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:11:29 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:11:29 +0000
commit4150a49b36c6987ede6ddf126f4e7b73d0f49276 (patch)
treeec4f0c71d77e8959bdf58ed5eb7a7a566d268afa
parent1ecebd4686e815773928ee89fd4dc09d2e1dfdfc (diff)
downloadmpd-4150a49b36c6987ede6ddf126f4e7b73d0f49276.tar.gz
mpd-4150a49b36c6987ede6ddf126f4e7b73d0f49276.tar.xz
mpd-4150a49b36c6987ede6ddf126f4e7b73d0f49276.zip
removed unused parameters from advanceOutputBufferTo()
The parameter "currentChunkSent" is not used and can be dropped. git-svn-id: https://svn.musicpd.org/mpd/trunk@7248 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/decode.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/decode.c b/src/decode.c
index 1b60b95d2..2d23ae7b8 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -396,8 +396,7 @@ void decoderInit(void)
FATAL("Failed to spawn decoder task: %s\n", strerror(errno));
}
-static void advanceOutputBufferTo(OutputBuffer * cb, PlayerControl * pc,
- int *currentChunkSent, int to)
+static void advanceOutputBufferTo(OutputBuffer * cb, int to)
{
while (cb->begin != to) {
if ((unsigned)cb->begin + 1 >= buffered_chunks)
@@ -420,7 +419,6 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
int decodeWaitedOn = 0;
static const char silence[CHUNK_SIZE];
double sizeToTime = 0.0;
- int currentChunkSent = 1;
unsigned int end;
int next = -1;
@@ -543,9 +541,7 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
if ((unsigned)nextChunk >= buffered_chunks) {
nextChunk -= buffered_chunks;
}
- advanceOutputBufferTo(cb, pc,
- &currentChunkSent,
- nextChunk);
+ advanceOutputBufferTo(cb, nextChunk);
}
}
while (pc->queueState == PLAYER_QUEUE_DECODE ||