diff options
author | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
commit | ba161ec572b98d3bcf9f735ff122133319fe896a (patch) | |
tree | a211690e3a8b7fce1fb6db540228122bead1f2bc /src/playlist/XspfPlaylistPlugin.cxx | |
parent | 43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff) | |
download | mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip |
song: convert header to C++
Diffstat (limited to '')
-rw-r--r-- | src/playlist/XspfPlaylistPlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist/XspfPlaylistPlugin.cxx b/src/playlist/XspfPlaylistPlugin.cxx index 0484246e3..a0bb33f1c 100644 --- a/src/playlist/XspfPlaylistPlugin.cxx +++ b/src/playlist/XspfPlaylistPlugin.cxx @@ -60,7 +60,7 @@ struct XspfParser { * The current song. It is allocated after the "location" * element. */ - struct song *song; + Song *song; XspfParser() :state(ROOT) {} @@ -187,7 +187,7 @@ xspf_text(G_GNUC_UNUSED GMarkupParseContext *context, case XspfParser::LOCATION: if (parser->song == NULL) { char *uri = g_strndup(text, text_len); - parser->song = song_remote_new(uri); + parser->song = Song::NewRemote(uri); g_free(uri); } @@ -209,7 +209,7 @@ xspf_parser_destroy(gpointer data) XspfParser *parser = (XspfParser *)data; if (parser->state >= XspfParser::TRACK && parser->song != NULL) - song_free(parser->song); + parser->song->Free(); } /* |