summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-03-10 16:11:34 +0100
committerMax Kellermann <max@musicpd.org>2017-03-10 16:11:34 +0100
commit1b6666fa39cdbe955661e7fa1d3ac8a8e68e4216 (patch)
tree1c283e7da3fd99f4d57b1f1503d9b24ffe35f702 /src
parent1dd01c99e81e25988e31e4913913fea36d4d9fff (diff)
Partition: handle SYNC_WITH_PLAYER before TAG_MODIFIED
The TAG_MODIFIED handler (i.e. playlist::TagModified()) works only if the modified song is the current song - something that is not updated until SYNC_WITH_PLAYER is finished. This fixes tag updates right after a new song is started.
Diffstat (limited to 'src')
-rw-r--r--src/Partition.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx
index 59754d2fb..f066041ec 100644
--- a/src/Partition.cxx
+++ b/src/Partition.cxx
@@ -141,9 +141,9 @@ Partition::OnMixerVolumeChanged(gcc_unused Mixer &mixer, gcc_unused int volume)
void
Partition::OnGlobalEvent(unsigned mask)
{
- if ((mask & TAG_MODIFIED) != 0)
- TagModified();
-
if ((mask & SYNC_WITH_PLAYER) != 0)
SyncWithPlayer();
+
+ if ((mask & TAG_MODIFIED) != 0)
+ TagModified();
}