[libbluray-devel] Set no buffering for log stream

hpi1 git at videolan.org
Sat Mar 30 01:39:08 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Mar 28 20:12:36 2013 +0200| [825d1f8d1cebff06b74d4e03a264826943541925] | committer: hpi1

Set no buffering for log stream

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=825d1f8d1cebff06b74d4e03a264826943541925
---

 src/util/logging.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/logging.c b/src/util/logging.c
index c8aa488..c64e0f6 100644
--- a/src/util/logging.c
+++ b/src/util/logging.c
@@ -72,7 +72,7 @@ void bd_debug(const char *file, int line, uint32_t mask, const char *format, ...
             FILE *fp = fopen(env, "wb");
             if (fp) {
                 logfile = fp;
-                setvbuf(logfile, NULL, _IOLBF, 0);
+                setvbuf(logfile, NULL, _IONBF, 0);
             } else {
                 fprintf(logfile, "%s:%d: Error opening log file %s\n", __FILE__, __LINE__, env);
             }



More information about the libbluray-devel mailing list