]> git.sesse.net Git - vlc/blobdiff - src/libvlc.c
system_Configure: do not depend on vlc_optind global
[vlc] / src / libvlc.c
index 3217b9be1b88f3cee95120a425269d50118d8f4d..61c296b014ae9b66e8dbc971fdf060a2100bc804 100644 (file)
@@ -818,7 +818,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     }
 
     /* System specific configuration */
-    system_Configure( p_libvlc, i_argc, ppsz_argv );
+    system_Configure( p_libvlc, i_argc - vlc_optind, ppsz_argv + vlc_optind );
 
     /* Add service discovery modules */
     psz_modules = var_InheritString( p_libvlc, "services-discovery" );