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:
Max Kellermann 2008-04-12 04:11:34 +00:00 committed by Eric Wong
parent 4150a49b36
commit 0defe87da7

View File

@ -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)