diff options
Diffstat (limited to 'test/dump_playlist.cxx')
-rw-r--r-- | test/dump_playlist.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index 6f8dadabe..76961639b 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -41,9 +41,9 @@ static void tag_save(FILE *file, const Tag &tag) { StdioOutputStream sos(file); - BufferedOutputStream bos(sos); - tag_save(bos, tag); - bos.Flush(); + WithBufferedOutputStream(sos, [&](auto &bos){ + tag_save(bos, tag); + }); } int main(int argc, char **argv) |