tag: convert to C++
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
#include "XspfPlaylistPlugin.hxx"
|
||||
#include "MemoryPlaylistProvider.hxx"
|
||||
#include "input_stream.h"
|
||||
#include "tag.h"
|
||||
#include "Tag.hxx"
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
@@ -177,9 +177,8 @@ xspf_text(G_GNUC_UNUSED GMarkupParseContext *context,
|
||||
if (parser->song != NULL &&
|
||||
parser->tag != TAG_NUM_OF_ITEM_TYPES) {
|
||||
if (parser->song->tag == NULL)
|
||||
parser->song->tag = tag_new();
|
||||
tag_add_item_n(parser->song->tag, parser->tag,
|
||||
text, text_len);
|
||||
parser->song->tag = new Tag();
|
||||
parser->song->tag->AddItem(parser->tag, text, text_len);
|
||||
}
|
||||
|
||||
break;
|
||||
|
Reference in New Issue
Block a user