]> git.sesse.net Git - vlc/blobdiff - src/vlc.c
minimal_macosx: Fix the minimal window.
[vlc] / src / vlc.c
index e4859f881918c7257844c7ea4095c0d855c60f68..77f793cbc6cbb6e79bb6dc06ae599ef0dd0970c9 100644 (file)
--- a/src/vlc.c
+++ b/src/vlc.c
 #include "config.h"
 
 #include <vlc/vlc.h>
-#include <stdio.h>                                              /* fprintf() */
-#include <stdlib.h>                                  /* putenv(), strtol(),  */
+#include <stdio.h>
+#include <stdlib.h>
 #include <locale.h>
 
+
 /* Explicit HACK */
 extern void LocaleFree (const char *);
 extern char *FromLocale (const char *);
@@ -97,7 +98,7 @@ int main( int i_argc, char *ppsz_argv[] )
     }
 
 #if !defined(WIN32) && !defined(UNDER_CE)
-    /* Synchronously intercepted signals. Thy request a clean shutdown,
+    /* Synchronously intercepted signals. They request a clean shutdown,
      * and force an unclean shutdown if they are triggered again 2+ seconds
      * later. We have to handle SIGTERM cleanly because of daemon mode.
      * Note that we set the signals after the vlc_create call. */
@@ -131,7 +132,7 @@ int main( int i_argc, char *ppsz_argv[] )
         int si = { 0 };
         __wgetmainargs(&i_wargc, &wargv, &wenvp, 0, &si);
 
-        for( i = 1; i < i_wargc; i++ )
+        for( i = 0; i < i_wargc; i++ )
         {
             int len = WideCharToMultiByte(CP_UTF8, 0, wargv[i], -1, NULL, 0, NULL, NULL);
             if( len > 0 )