Skip to content

Commit

Permalink
player/Thread: merge tag for songs have range instead of replacing wi…
Browse files Browse the repository at this point in the history
…th `chunk->tag`
  • Loading branch information
datasone committed Apr 11, 2023
1 parent 143b17b commit 95c7f63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/player/Thread.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,10 @@ PlayerControl::LockUpdateSongTag(DetachedSong &song,
streams may change tags dynamically */
return;

song.SetTag(new_tag);
if (!song.GetEndTime().IsZero())
song.SetTag(Tag::Merge(new_tag, song.GetTag()));
else
song.SetTag(new_tag);

LockSetTaggedSong(song);

Expand Down

0 comments on commit 95c7f63

Please sign in to comment.