[vlc-devel] commit: Win32: do not pass argv[0] to libvlc - fixes #1920 ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Aug 26 17:28:42 CEST 2008
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Aug 26 17:55:18 2008 +0300| [f21cc986ba5ef5c314344f951fd61bc779f270d7] | committer: Jean-Baptiste Kempf
Win32: do not pass argv[0] to libvlc - fixes #1920
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f21cc986ba5ef5c314344f951fd61bc779f270d7
---
bin/winvlc.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/bin/winvlc.c b/bin/winvlc.c
index 7e028ac..43c2e46 100644
--- a/bin/winvlc.c
+++ b/bin/winvlc.c
@@ -71,7 +71,8 @@ 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;
+ vlc = libvlc_new (argc - 1, (const char **)argv + 1, &ex);
if (vlc != NULL)
{
libvlc_add_intf (vlc, NULL, &ex);
More information about the vlc-devel
mailing list