Merge tag 'v0.21.9'

release v0.21.9
This commit is contained in:
Max Kellermann
2019-05-20 17:23:01 +02:00
3 changed files with 43 additions and 11 deletions
+11 -1
View File
@@ -999,7 +999,7 @@ Player::Run() noexcept
}
}
if (dc.IsIdle() && queued && dc.pipe == pipe) {
if (dc.IsIdle() && queued) {
/* the decoder has finished the current song;
make it decode the next song */
@@ -1061,6 +1061,16 @@ Player::Run() noexcept
SongBorder();
} else if (dc.IsIdle()) {
if (queued)
/* the decoder has just stopped,
between the two IsIdle() checks,
probably while UnlockCheckOutputs()
left the mutex unlocked; to restart
the decoder instead of stopping
playback completely, let's re-enter
this loop */
continue;
/* check the size of the pipe again, because
the decoder thread may have added something
since we last checked */