[vlc-devel] commit: Win32: do not add argv[0] (vlc.exe) to the playlist ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Aug 26 07:12:35 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Aug 26 08:15:23 2008 +0300| [916717a706f7d658694d8ff33f770b1d3ba9e2bc] | committer: Rémi Denis-Courmont
Win32: do not add argv[0] (vlc.exe) to the playlist
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=916717a706f7d658694d8ff33f770b1d3ba9e2bc
---
bin/winvlc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bin/winvlc.c b/bin/winvlc.c
index 7e028ac..791a4a7 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);
More information about the vlc-devel
mailing list