[vlc-commits] intf-add: list CLI on win32 regardless of stdin

Pierre Ynard git at videolan.org
Wed Jun 22 01:08:27 CEST 2011


vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Jun 22 01:01:46 2011 +0200| [5c7b2b5b8c36c0cec4d4a7df2baf95a7ee21b4bd] | committer: Pierre Ynard

intf-add: list CLI on win32 regardless of stdin

Win32 spawns its own console so this is irrelevant
(cherry picked from commit f1433011c2cae9e25cfcb56d64cc92b2f523df4e)

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=5c7b2b5b8c36c0cec4d4a7df2baf95a7ee21b4bd
---

 src/interface/interface.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/interface/interface.c b/src/interface/interface.c
index c88ecbe..7299535 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -87,7 +87,9 @@ int intf_Create( vlc_object_t *p_this, const char *psz_module )
                 VLC_VAR_HASCHOICE | VLC_VAR_ISCOMMAND );
     text.psz_string = _("Add Interface");
     var_Change( p_intf, "intf-add", VLC_VAR_SETTEXT, &text, NULL );
+#if !defined(WIN32) && defined(HAVE_ISATTY)
     if( isatty( 0 ) )
+#endif
     {
         val.psz_string = (char *)"rc";
         text.psz_string = (char *)_("Console");



More information about the vlc-commits mailing list