[vlc-commits] cli: don't mess with stdout
Rémi Denis-Courmont
git at videolan.org
Sun Nov 29 14:56:11 CET 2020
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 29 12:58:49 2020 +0200| [8cf92acf06b7cd2714c22160195614afa1d749a8] | committer: Rémi Denis-Courmont
cli: don't mess with stdout
If we don't use stdout, we should not reconfigure it.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8cf92acf06b7cd2714c22160195614afa1d749a8
---
modules/control/cli/cli.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/control/cli/cli.c b/modules/control/cli/cli.c
index 58773b22de..b71ff46a02 100644
--- a/modules/control/cli/cli.c
+++ b/modules/control/cli/cli.c
@@ -904,10 +904,10 @@ static int Activate( vlc_object_t *p_this )
p_sys->pi_socket_listen = pi_socket;
+#ifndef _WIN32
/* Line-buffered stdout */
- setvbuf( stdout, (char *)NULL, _IOLBF, 0 );
+ setvbuf(stdout, NULL, _IOLBF, 0);
-#ifndef _WIN32
if (pi_socket != NULL)
#else
p_sys->i_socket = -1;
More information about the vlc-commits
mailing list