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

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


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

intf-add: list CLI on win32 regardless of stdin

Win32 spawns its own console so this is irrelevant

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

 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 b22a8fe..5fc7c91 100644
--- a/src/interface/interface.c
+++ b/src/interface/interface.c
@@ -85,7 +85,9 @@ int intf_Create( vlc_object_t *p_this, const char *chain )
                 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