[vlc-devel] [PATCH] logger: flush log stream

Thomas Guillem thomas at gllm.fr
Tue Nov 14 08:51:13 CET 2017


This fixes late logs on Windows.
---
 modules/logger/console.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/logger/console.c b/modules/logger/console.c
index 14627479c9..e9c91bf631 100644
--- a/modules/logger/console.c
+++ b/modules/logger/console.c
@@ -83,6 +83,7 @@ static void LogConsoleGray(void *opaque, int type, const vlc_log_t *meta,
     vfprintf(stream, format, ap);
     putc_unlocked('\n', stream);
     funlockfile(stream);
+    fflush(stream);
 }
 
 static vlc_log_cb Open(vlc_object_t *obj, void **sysp)
-- 
2.11.0



More information about the vlc-devel mailing list