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/decoder/VorbisComments.cxx | |
parent | 6a9ab8bc0e2f5d34803513bb2d94d041a607a58c (diff) | |
download | mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.gz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.xz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.zip |
tag: convert to C++
Diffstat (limited to 'src/decoder/VorbisComments.cxx')
-rw-r--r-- | src/decoder/VorbisComments.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decoder/VorbisComments.cxx b/src/decoder/VorbisComments.cxx index a2bec30f1..88a8dc772 100644 --- a/src/decoder/VorbisComments.cxx +++ b/src/decoder/VorbisComments.cxx @@ -20,7 +20,7 @@ #include "config.h" #include "VorbisComments.hxx" #include "XiphTags.hxx" -#include "tag.h" +#include "Tag.hxx" #include "TagTable.hxx" #include "TagHandler.hxx" #include "replay_gain_info.h" @@ -135,14 +135,14 @@ vorbis_comments_scan(char **comments, } -struct tag * +Tag * vorbis_comments_to_tag(char **comments) { - struct tag *tag = tag_new(); + Tag *tag = new Tag(); vorbis_comments_scan(comments, &add_tag_handler, tag); - if (tag_is_empty(tag)) { - tag_free(tag); + if (tag->IsEmpty()) { + delete tag; tag = NULL; } |