From 59efed3e8e3da3be85fada02a533cb79fba21569 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 13:36:05 +0200 Subject: tag: added buffered versions of the tag_print.c code Currently, when the tag cache is being serialized to hard disk, the stdio buffer is flushed before every song, because tag_print.c performs unbuffered writes on the raw file descriptor. Unfortunately, the fdprintf() API allows buffered I/O only for a client connection by looking up the client pointer owning the file descriptor - for stdio, this is not possible. To re-enable proper stdio buffering, we have to duplicate the tag_print.c code without fprintf() instead of our custom fdprintf() hack. Add this duplicated code to tag_save.c. --- src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index ba7b7c3a3..1a631d1c6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -88,6 +88,7 @@ mpd_headers = \ tag_pool.h \ tag_id3.h \ tag_print.h \ + tag_save.h \ tagTracker.h \ utf8.h \ utils.h \ @@ -154,6 +155,7 @@ mpd_SOURCES = \ tag_pool.c \ tag_id3.c \ tag_print.c \ + tag_save.c \ tagTracker.c \ utils.c \ volume.c \ -- cgit v1.2.3