Commit 916717a7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: do not add argv[0] (vlc.exe) to the playlist

parent e25ce5fa
...@@ -71,7 +71,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, ...@@ -71,7 +71,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
libvlc_exception_init (&dummy); libvlc_exception_init (&dummy);
/* Initialize libvlc */ /* 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) if (vlc != NULL)
{ {
libvlc_add_intf (vlc, NULL, &ex); libvlc_add_intf (vlc, NULL, &ex);
......
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