From 9fb351a139a56fc7b1ece549894f8fc31fa887cd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jul 2014 20:58:14 +0200 Subject: *Save, *State: use the OutputStream API instead of FILE* --- test/dump_playlist.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/dump_playlist.cxx') diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index 5928c8eb4..1d497535c 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -29,6 +29,8 @@ #include "playlist/PlaylistRegistry.hxx" #include "playlist/PlaylistPlugin.hxx" #include "fs/Path.hxx" +#include "fs/output/BufferedOutputStream.hxx" +#include "fs/output/StdioOutputStream.hxx" #include "util/Error.hxx" #include "thread/Cond.hxx" #include "Log.hxx" @@ -40,6 +42,15 @@ #include #include +static void +tag_save(FILE *file, const Tag &tag) +{ + StdioOutputStream sos(file); + BufferedOutputStream bos(sos); + tag_save(bos, tag); + bos.Flush(); +} + int main(int argc, char **argv) { const char *uri; -- cgit v1.2.3