summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-05-19 08:09:05 +0200
committerMax Kellermann <max@musicpd.org>2021-05-19 08:09:05 +0200
commitb2cec7a0a375481d1977c167ca51d45dae1e2850 (patch)
treebf1c5220b40b878cea588675d08a04f0d14579a9 /src/queue
parent85db2d670443089ed74d0ea389f2c1819542956e (diff)
parentc3f9b38c974c5dc8e8621df680769e20ee361a24 (diff)
Merge branch 'v0.22.x'
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/Playlist.cxx4
-rw-r--r--src/queue/Playlist.hxx7
2 files changed, 8 insertions, 3 deletions
diff --git a/src/queue/Playlist.cxx b/src/queue/Playlist.cxx
index c5d15c780..f4a10b503 100644
--- a/src/queue/Playlist.cxx
+++ b/src/queue/Playlist.cxx
@@ -44,13 +44,13 @@ playlist::TagModified(DetachedSong &&song) noexcept
}
void
-playlist::TagModified(const char *uri, const Tag &tag) noexcept
+playlist::TagModified(const char *real_uri, const Tag &tag) noexcept
{
bool modified = false;
for (unsigned i = 0; i < queue.length; ++i) {
auto &song = *queue.items[i].song;
- if (song.IsURI(uri)) {
+ if (song.IsRealURI(real_uri)) {
song.SetTag(tag);
queue.ModifyAtPosition(i);
modified = true;
diff --git a/src/queue/Playlist.hxx b/src/queue/Playlist.hxx
index a04685a2d..69cd7d8d2 100644
--- a/src/queue/Playlist.hxx
+++ b/src/queue/Playlist.hxx
@@ -197,7 +197,12 @@ public:
* the song matches.
*/
void TagModified(DetachedSong &&song) noexcept;
- void TagModified(const char *uri, const Tag &tag) noexcept;
+
+ /**
+ * @param real_uri the song's "real uri" (see
+ * DetachedSong::GetRealURI(), DetachedSong::IsRealURI())
+ */
+ void TagModified(const char *real_uri, const Tag &tag) noexcept;
#ifdef ENABLE_DATABASE
/**