[vlc-devel] commit: Fix zsh_gen compilation. ( Rémi Duraffort )

git version control git at videolan.org
Wed Feb 3 12:02:38 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Feb  3 10:19:14 2010 +0100| [fb1f89ba9476f49d477b0564cc3c624f1100d16d] | committer: Rémi Duraffort 

Fix zsh_gen compilation.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb1f89ba9476f49d477b0564cc3c624f1100d16d
---

 extras/analyser/zsh.cpp |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/extras/analyser/zsh.cpp b/extras/analyser/zsh.cpp
index 43b217d..318822a 100644
--- a/extras/analyser/zsh.cpp
+++ b/extras/analyser/zsh.cpp
@@ -56,19 +56,14 @@ int main( int i_argc, const char **ppsz_argv )
     mumap mods;
     mcmap mods2;
     /* Create a libvlc structure */
-
-    libvlc_exception_t ex;
-    libvlc_exception_init(&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);
+    libvlc_instance_t *p_libvlc_instance = libvlc_new(i_argc+1, argv);
 
-    if( !p_libvlc_instance || libvlc_exception_raised(&ex) )
+    if( !p_libvlc_instance )
     {
-        libvlc_exception_clear(&ex);
         return 1;
     }
 




More information about the vlc-devel mailing list