player/Thread: update song tag from remote stream only if changed.

Some streams send the same tags frequently, causing unnecessary player queue update events.
This commit is contained in:
gd
2025-01-29 08:43:51 +02:00
parent f15014b6af
commit f9d47502d8

View File

@@ -904,13 +904,15 @@ PlayerControl::LockUpdateSongTag(DetachedSong &song,
streams may change tags dynamically */
return;
song.SetTag(new_tag);
if (new_tag != song.GetTag()) {
song.SetTag(new_tag);
LockSetTaggedSong(song);
LockSetTaggedSong(song);
/* the main thread will update the playlist version when he
receives this event */
listener.OnPlayerTagModified();
/* the main thread will update the playlist version when he
receives this event */
listener.OnPlayerTagModified();
}
}
inline void