From 5646dcc791c99439a321b7e73dffff2a60e47a16 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 13 Sep 2011 22:46:47 +0200
Subject: test/read_tags: initialize the tag_pool library

---
 test/read_tags.c | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'test')

diff --git a/test/read_tags.c b/test/read_tags.c
index 3e5e523bf..07d1afcba 100644
--- a/test/read_tags.c
+++ b/test/read_tags.c
@@ -24,6 +24,7 @@
 #include "input_stream.h"
 #include "audio_format.h"
 #include "pcm_volume.h"
+#include "tag_pool.h"
 #include "tag_ape.h"
 #include "tag_id3.h"
 #include "idle.h"
@@ -164,6 +165,8 @@ int main(int argc, char **argv)
 	decoder_name = argv[1];
 	path = argv[2];
 
+	tag_pool_init();
+
 	if (!input_stream_global_init(&error)) {
 		g_warning("%s", error->message);
 		g_error_free(error);
@@ -215,5 +218,7 @@ int main(int argc, char **argv)
 		}
 	}
 
+	tag_pool_deinit();
+
 	return 0;
 }
-- 
cgit v1.2.3


From 48eb3ff8d993e4d6977898ccec1d9377b7397f16 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sat, 4 Feb 2012 17:18:37 +0100
Subject: test/run_decoder: initialize the tag_pool library

---
 test/run_decoder.c | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'test')

diff --git a/test/run_decoder.c b/test/run_decoder.c
index c997ebf8f..8dbd53017 100644
--- a/test/run_decoder.c
+++ b/test/run_decoder.c
@@ -20,6 +20,7 @@
 #include "config.h"
 #include "decoder_list.h"
 #include "decoder_api.h"
+#include "tag_pool.h"
 #include "input_init.h"
 #include "input_stream.h"
 #include "audio_format.h"
@@ -180,6 +181,8 @@ int main(int argc, char **argv)
 
 	g_log_set_default_handler(my_log_func, NULL);
 
+	tag_pool_init();
+
 	if (!input_stream_global_init(&error)) {
 		g_warning("%s", error->message);
 		g_error_free(error);
@@ -228,5 +231,7 @@ int main(int argc, char **argv)
 		return 1;
 	}
 
+	tag_pool_deinit();
+
 	return 0;
 }
-- 
cgit v1.2.3