Commit 93d9a388 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

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

parent 7c359c66
...@@ -74,12 +74,10 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc, ...@@ -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 /* 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... * 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] * hence the following kludge otherwise we'll get confused w/ argv[1]
* being an input file name */ * being an input file name.
#if 0 * As there won't be any more args to parse, just exit. */
ppsz_argv[ 1 ] = NULL; assert( *pi_argc == 2 );
#endif *pi_argc = 1;
*pi_argc = *pi_argc - 1;
pi_argc--;
return 0; return 0;
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment