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
This commit is contained in:

committed by
Eric Wong

parent
1ecebd4686
commit
4150a49b36
@@ -396,8 +396,7 @@ void decoderInit(void)
|
|||||||
FATAL("Failed to spawn decoder task: %s\n", strerror(errno));
|
FATAL("Failed to spawn decoder task: %s\n", strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void advanceOutputBufferTo(OutputBuffer * cb, PlayerControl * pc,
|
static void advanceOutputBufferTo(OutputBuffer * cb, int to)
|
||||||
int *currentChunkSent, int to)
|
|
||||||
{
|
{
|
||||||
while (cb->begin != to) {
|
while (cb->begin != to) {
|
||||||
if ((unsigned)cb->begin + 1 >= buffered_chunks)
|
if ((unsigned)cb->begin + 1 >= buffered_chunks)
|
||||||
@@ -420,7 +419,6 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
|
|||||||
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 currentChunkSent = 1;
|
|
||||||
unsigned int end;
|
unsigned int end;
|
||||||
int next = -1;
|
int next = -1;
|
||||||
|
|
||||||
@@ -543,9 +541,7 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
|
|||||||
if ((unsigned)nextChunk >= buffered_chunks) {
|
if ((unsigned)nextChunk >= buffered_chunks) {
|
||||||
nextChunk -= buffered_chunks;
|
nextChunk -= buffered_chunks;
|
||||||
}
|
}
|
||||||
advanceOutputBufferTo(cb, pc,
|
advanceOutputBufferTo(cb, nextChunk);
|
||||||
¤tChunkSent,
|
|
||||||
nextChunk);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (pc->queueState == PLAYER_QUEUE_DECODE ||
|
while (pc->queueState == PLAYER_QUEUE_DECODE ||
|
||||||
|
Reference in New Issue
Block a user