diff options
author | Max Kellermann <max@duempel.org> | 2013-07-30 20:11:57 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-30 20:19:53 +0200 |
commit | 06f898cc1240a29b293de0e97ad95a4fdc971254 (patch) | |
tree | 001a6d3db039cdc03323f3bfddc13b94bde31ce4 /src/playlist/SoundCloudPlaylistPlugin.cxx | |
parent | 6a9ab8bc0e2f5d34803513bb2d94d041a607a58c (diff) | |
download | mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.gz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.xz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.zip |
tag: convert to C++
Diffstat (limited to 'src/playlist/SoundCloudPlaylistPlugin.cxx')
-rw-r--r-- | src/playlist/SoundCloudPlaylistPlugin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/playlist/SoundCloudPlaylistPlugin.cxx b/src/playlist/SoundCloudPlaylistPlugin.cxx index 7c93a57b3..01055d1c9 100644 --- a/src/playlist/SoundCloudPlaylistPlugin.cxx +++ b/src/playlist/SoundCloudPlaylistPlugin.cxx @@ -23,7 +23,7 @@ #include "conf.h" #include "input_stream.h" #include "Song.hxx" -#include "tag.h" +#include "Tag.hxx" #include <glib.h> #include <yajl/yajl_parse.h> @@ -204,16 +204,16 @@ static int handle_end_map(void *ctx) data->got_url = 0; Song *s; - struct tag *t; char *u; u = g_strconcat(data->stream_url, "?client_id=", soundcloud_config.apikey, NULL); s = Song::NewRemote(u); g_free(u); - t = tag_new(); + + Tag *t = new Tag(); t->time = data->duration / 1000; if (data->title != NULL) - tag_add_item(t, TAG_NAME, data->title); + t->AddItem(TAG_NAME, data->title); s->tag = t; data->songs.emplace_front(s); |