[vlc-devel] commit: zsh: really use the arguments given to the zsh generator. ( Rémi Duraffort )
git version control
git at videolan.org
Mon Jan 4 00:33:08 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jan 3 18:27:09 2010 +0100| [cef4089be7505be06c0d8a7392de55207f51a3ef] | committer: Rémi Duraffort
zsh: really use the arguments given to the zsh generator.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cef4089be7505be06c0d8a7392de55207f51a3ef
---
extras/analyser/zsh.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/extras/analyser/zsh.cpp b/extras/analyser/zsh.cpp
index e5b10fa..880ef77 100644
--- a/extras/analyser/zsh.cpp
+++ b/extras/analyser/zsh.cpp
@@ -60,8 +60,11 @@ int main( int i_argc, const char **ppsz_argv )
libvlc_exception_t ex;
libvlc_exception_init(&ex);
- const char * const argv[] = { "vlc" };
- libvlc_instance_t *p_libvlc_instance = libvlc_new(1, argv, &ex);
+ const char *argv[i_argc + 1];
+ argv[0] = "vlc";
+ for( int i = 0; i < i_argc; i++ )
+ argv[i+1] = ppsz_argv[i];
+ libvlc_instance_t *p_libvlc_instance = libvlc_new(i_argc+1, argv, &ex);
if( !p_libvlc_instance || libvlc_exception_raised(&ex) )
{
More information about the vlc-devel
mailing list