aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_vorbis_encoder.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-07-30 20:11:57 +0200
committerMax Kellermann <max@duempel.org>2013-07-30 20:19:53 +0200
commit06f898cc1240a29b293de0e97ad95a4fdc971254 (patch)
tree001a6d3db039cdc03323f3bfddc13b94bde31ce4 /test/test_vorbis_encoder.cxx
parent6a9ab8bc0e2f5d34803513bb2d94d041a607a58c (diff)
downloadmpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.gz
mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.xz
mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.zip
tag: convert to C++
Diffstat (limited to 'test/test_vorbis_encoder.cxx')
-rw-r--r--test/test_vorbis_encoder.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/test_vorbis_encoder.cxx b/test/test_vorbis_encoder.cxx
index 1e3b78065..650480319 100644
--- a/test/test_vorbis_encoder.cxx
+++ b/test/test_vorbis_encoder.cxx
@@ -23,7 +23,7 @@
#include "audio_format.h"
#include "conf.h"
#include "stdbin.h"
-#include "tag.h"
+#include "Tag.hxx"
#include <glib.h>
@@ -83,15 +83,13 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv)
encoder_to_stdout(*encoder);
- struct tag *tag = tag_new();
- tag_add_item(tag, TAG_ARTIST, "Foo");
- tag_add_item(tag, TAG_TITLE, "Bar");
+ Tag tag;
+ tag.AddItem(TAG_ARTIST, "Foo");
+ tag.AddItem(TAG_TITLE, "Bar");
- success = encoder_tag(encoder, tag, NULL);
+ success = encoder_tag(encoder, &tag, NULL);
assert(success);
- tag_free(tag);
-
encoder_to_stdout(*encoder);
/* write another block of data */