]> git.sesse.net Git - vlc/commitdiff
config: Clean up for the -psn cmd line argument case on Mac OS X.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 23 May 2008 22:16:06 +0000 (00:16 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 23 May 2008 22:16:38 +0000 (00:16 +0200)
src/config/cmdline.c

index dc5d2b786c68bbeb9ea178f0f900b6acbc887830..acb96b3749c045304acbacf57d6f5a184b5241b5 100644 (file)
@@ -74,12 +74,10 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc,
         /* GDMF!... I can't do this or else the MacOSX window server will
          * not pick up the PSN and not register the app and we crash...
          * hence the following kludge otherwise we'll get confused w/ argv[1]
-         * being an input file name */
-#if 0
-        ppsz_argv[ 1 ] = NULL;
-#endif
-        *pi_argc = *pi_argc - 1;
-        pi_argc--;
+         * being an input file name.
+         * As there won't be any more args to parse, just exit. */
+        assert( *pi_argc == 2 );
+        *pi_argc = 1;
         return 0;
     }
 #endif