From e29c06b718301562eebf2fa165f4017eae9407dc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Sep 2020 20:12:51 +0200 Subject: [PATCH] player/Thread: add another code comment explaining OnPlayerSync() --- src/player/Thread.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index 1766164e1..9f3fe23a1 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -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(); }