[vlc-devel] [PATCH] std_logger: fix write to stop_pipe

Zhao Zhili wantlamy at gmail.com
Sun Nov 6 04:21:15 CET 2016


>From 93b25542b4bc18cfeb42fc2e25f312a89a5e56df Mon Sep 17 00:00:00 2001
From: Zhao Zhili <wantlamy at gmail.com>
Date: Sun, 6 Nov 2016 11:09:05 +0800
Subject: [PATCH] std_logger: fix write to stop_pipe

---
 libvlc/jni/std_logger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvlc/jni/std_logger.c b/libvlc/jni/std_logger.c
index c6bf3b8..10e8771 100644
--- a/libvlc/jni/std_logger.c
+++ b/libvlc/jni/std_logger.c
@@ -167,7 +167,7 @@ std_logger_Close(std_logger *sys)
 {
     if (sys->stop_pipe[1] != -1)
     {
-        write(sys->stop_pipe[1], '\0', 1);
+        write(sys->stop_pipe[1], "", 1);
         close(sys->stop_pipe[1]);
         sys->stop_pipe[1] = -1;
         pthread_join(sys->thread, NULL);
-- 
2.7.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20161106/c4d78b06/attachment.html>


More information about the vlc-devel mailing list