From 916717a706f7d658694d8ff33f770b1d3ba9e2bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 26 Aug 2008 08:15:23 +0300 Subject: [PATCH] Win32: do not add argv[0] (vlc.exe) to the playlist --- bin/winvlc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2