removed "quit"

The variable "quit" can be removed, since its only setter can use
"break" instead, just like the other code paths.

git-svn-id: https://svn.musicpd.org/mpd/trunk@7266 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Max Kellermann 2008-04-12 04:13:05 +00:00 committed by Eric Wong
parent e9b7aae3f0
commit 71b24e0950

View File

@ -362,7 +362,6 @@ static void advanceOutputBufferTo(OutputBuffer * cb, int to)
static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb) static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb)
{ {
int pause = 0; int pause = 0;
int quit = 0;
int buffering = 1; int buffering = 1;
unsigned int bbp = buffered_before_play; unsigned int bbp = buffered_before_play;
/** cross fading enabled for the current song? 0=must check; /** cross fading enabled for the current song? 0=must check;
@ -387,7 +386,7 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
pc->play = 0; pc->play = 0;
wakeup_main_task(); wakeup_main_task();
while (!quit) { while (1) {
processDecodeInput(pc, dc, cb, processDecodeInput(pc, dc, cb,
&pause, &bbp, &doCrossFade, &pause, &bbp, &doCrossFade,
&decodeWaitedOn, &next); &decodeWaitedOn, &next);
@ -546,9 +545,8 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
&(cb->audioFormat), &(cb->audioFormat),
pc->softwareVolume); pc->softwareVolume);
if (playAudio(cb->chunks + cb->begin * CHUNK_SIZE, if (playAudio(cb->chunks + cb->begin * CHUNK_SIZE,
cb->chunkSize[cb->begin]) < 0) { cb->chunkSize[cb->begin]) < 0)
quit = 1; break;
}
pc->totalPlayTime += pc->totalPlayTime +=
sizeToTime * cb->chunkSize[cb->begin]; sizeToTime * cb->chunkSize[cb->begin];
if ((unsigned)cb->begin + 1 >= buffered_chunks) { if ((unsigned)cb->begin + 1 >= buffered_chunks) {