player/Thread: add another code comment explaining OnPlayerSync()

This commit is contained in:
Max Kellermann 2020-09-16 20:12:51 +02:00
parent d9d511f33e
commit e29c06b718
1 changed files with 5 additions and 0 deletions

View File

@ -1169,6 +1169,11 @@ try {
{
const ScopeUnlock unlock(mutex);
do_play(*this, dc, buffer);
/* give the main thread a chance to
queue another song, just in case
we've stopped playback
spuriously */
listener.OnPlayerSync();
}