Commit 0defe87d authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

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
parent 4150a49b
......@@ -398,12 +398,7 @@ void decoderInit(void)
static void advanceOutputBufferTo(OutputBuffer * cb, int to)
{
while (cb->begin != to) {
if ((unsigned)cb->begin + 1 >= buffered_chunks)
cb->begin = 0;
else
cb->begin++;
}
cb->begin = to;
}
static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb)
......
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