replace advanceOutputBufferTo() with trivial assignment
After the previous patch, it is clear that the loop in advanceOutputBufferTo() can be replaced with a simple assignment. git-svn-id: https://svn.musicpd.org/mpd/trunk@7249 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:

committed by
Eric Wong

parent
4150a49b36
commit
0defe87da7
@@ -398,12 +398,7 @@ void decoderInit(void)
|
|||||||
|
|
||||||
static void advanceOutputBufferTo(OutputBuffer * cb, int to)
|
static void advanceOutputBufferTo(OutputBuffer * cb, int to)
|
||||||
{
|
{
|
||||||
while (cb->begin != to) {
|
cb->begin = to;
|
||||||
if ((unsigned)cb->begin + 1 >= buffered_chunks)
|
|
||||||
cb->begin = 0;
|
|
||||||
else
|
|
||||||
cb->begin++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb)
|
static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb)
|
||||||
|
Reference in New Issue
Block a user