aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/decode.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/decode.c b/src/decode.c
index 520485383..386c45a55 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -546,18 +546,17 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
if (pc->queueState != PLAYER_QUEUE_PLAY) {
quit = 1;
break;
- } else {
- next = -1;
- if (waitOnDecode(pc, dc, cb, &decodeWaitedOn) <
- 0) {
- return;
- }
- nextChunk = -1;
- doCrossFade = 0;
- crossFadeChunks = 0;
- pc->queueState = PLAYER_QUEUE_EMPTY;
- wakeup_main_task();
}
+
+ next = -1;
+ if (waitOnDecode(pc, dc, cb, &decodeWaitedOn) < 0)
+ return;
+
+ nextChunk = -1;
+ doCrossFade = 0;
+ crossFadeChunks = 0;
+ pc->queueState = PLAYER_QUEUE_EMPTY;
+ wakeup_main_task();
} else if (dc->state == DECODE_STATE_STOP && !dc->start) {
quit = 1;
break;