summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-09-16 20:12:51 +0200
committerMax Kellermann <max@musicpd.org>2020-09-16 20:12:52 +0200
commite29c06b718301562eebf2fa165f4017eae9407dc (patch)
tree5516cd8f67746834388bb9d77ad1f0615701979f
parentd9d511f33ef6ed358e844e834db1706f40588cb7 (diff)
player/Thread: add another code comment explaining OnPlayerSync()
-rw-r--r--src/player/Thread.cxx5
1 files changed, 5 insertions, 0 deletions
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();
}