[vlc-devel] commit: config: Clean up for the -psn cmd line argument case on Mac OS X. ( Pierre d'Herbemont )

git version control git at videolan.org
Sat May 24 00:15:25 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat May 24 00:16:06 2008 +0200| [93d9a388cab3b40a5361df3b779cbc5ff6e25140]

config: Clean up for the -psn cmd line argument case on Mac OS X.

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

 src/config/cmdline.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/config/cmdline.c b/src/config/cmdline.c
index dc5d2b7..acb96b3 100644
--- a/src/config/cmdline.c
+++ b/src/config/cmdline.c
@@ -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




More information about the vlc-devel mailing list