aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/SoundCloudPlaylistPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-03 12:30:00 +0100
committerMax Kellermann <max@duempel.org>2013-12-03 12:30:00 +0100
commit01de768f09e32113fb4fb7ac3d8f123eb54e5697 (patch)
treed4f1e147b5f378c8194b8abf7803c1f9321e6d4d /src/playlist/SoundCloudPlaylistPlugin.cxx
parent73a861abf1fa3670e3bbb88e1bcadd185e9f471a (diff)
downloadmpd-01de768f09e32113fb4fb7ac3d8f123eb54e5697.tar.gz
mpd-01de768f09e32113fb4fb7ac3d8f123eb54e5697.tar.xz
mpd-01de768f09e32113fb4fb7ac3d8f123eb54e5697.zip
playlist/soundcloud: use class TagBuilder
Diffstat (limited to '')
-rw-r--r--src/playlist/SoundCloudPlaylistPlugin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/playlist/SoundCloudPlaylistPlugin.cxx b/src/playlist/SoundCloudPlaylistPlugin.cxx
index 0d4b39948..f058b596b 100644
--- a/src/playlist/SoundCloudPlaylistPlugin.cxx
+++ b/src/playlist/SoundCloudPlaylistPlugin.cxx
@@ -24,7 +24,7 @@
#include "ConfigData.hxx"
#include "InputStream.hxx"
#include "Song.hxx"
-#include "tag/Tag.hxx"
+#include "tag/TagBuilder.hxx"
#include "util/StringUtil.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
@@ -215,11 +215,11 @@ static int handle_end_map(void *ctx)
s = Song::NewRemote(u);
g_free(u);
- Tag *t = new Tag();
- t->time = data->duration / 1000;
+ TagBuilder tag;
+ tag.SetTime(data->duration / 1000);
if (data->title != nullptr)
- t->AddItem(TAG_NAME, data->title);
- s->tag = t;
+ tag.AddItem(TAG_NAME, data->title);
+ s->tag = tag.Commit();
data->songs.emplace_front(s);