From: RĂ©mi Denis-Courmont Date: Tue, 26 Aug 2008 05:15:23 +0000 (+0300) Subject: Win32: do not add argv[0] (vlc.exe) to the playlist X-Git-Tag: 1.0.0-pre1~3846 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=916717a706f7d658694d8ff33f770b1d3ba9e2bc;p=vlc Win32: do not add argv[0] (vlc.exe) to the playlist --- diff --git a/bin/winvlc.c b/bin/winvlc.c index 7e028ac630..791a4a70d6 100644 --- a/bin/winvlc.c +++ b/bin/winvlc.c @@ -71,7 +71,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, libvlc_exception_init (&dummy); /* Initialize libvlc */ - libvlc_instance_t *vlc = libvlc_new (argc, (const char **)argv, &ex); + libvlc_instance_t *vlc = libvlc_new (argc, (const char **)(argv + 1), &ex); if (vlc != NULL) { libvlc_add_intf (vlc, NULL, &ex);