aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_vorbis_encoder.cxx
diff options
context:
space:
mode:
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 */