queue/Playlist: move only the tag items in TagModified()

Fixes disappearing duration of remote songs during playback.

See http://bugs.musicpd.org/view.php?id=4492
This commit is contained in:
Max Kellermann 2016-02-23 21:01:55 +01:00
parent e1d7a5cbf5
commit 39fa949345
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -3,6 +3,7 @@ ver 0.19.13 (not yet released)
- aiff, riff: fix ID3 chunk padding
* decoder
- ffmpeg: support the TAK codec
* fix disappearing duration of remote songs during playback
* initialize supplementary groups with glibc 2.19+
ver 0.19.12 (2015/12/15)

View File

@ -37,7 +37,7 @@ playlist::TagModified(DetachedSong &&song)
DetachedSong &current_song = queue.GetOrder(current);
if (song.IsSame(current_song))
current_song.MoveTagFrom(std::move(song));
current_song.MoveTagItemsFrom(std::move(song));
queue.ModifyAtOrder(current);
queue.IncrementVersion();