From 06f898cc1240a29b293de0e97ad95a4fdc971254 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Jul 2013 20:11:57 +0200 Subject: tag: convert to C++ --- test/test_vorbis_encoder.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'test/test_vorbis_encoder.cxx') 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 @@ -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 */ -- cgit v1.2.3