]> git.sesse.net Git - vlc/blobdiff - extras/analyser/zsh.cpp
Add m2ts and mts to the interface dialog selectors.
[vlc] / extras / analyser / zsh.cpp
index 04c516830d45d25d57685ccb073a0310d6eaec06..77c0436d8760a85428699538070377f04573e0ff 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * zsh.cpp: create zsh completion rule for vlc
  *****************************************************************************
- * Copyright (C) 2005 the VideoLAN team
+ * Copyright © 2005-2008 the VideoLAN team
  * $Id$
  *
  * Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
@@ -70,7 +70,7 @@ int main( int i_argc, const char **ppsz_argv )
         VLC_Destroy( 0 );
         return i_ret;
     }
-    p_libvlc = (libvlc_int_t*)vlc_object_get( (vlc_object_t*)NULL, i_ret );
+    p_libvlc = (libvlc_int_t*)vlc_object_get( i_ret );
     printf("#compdef vlc\n\n"
 
            "#This file is autogenerated by zsh.cpp\n"
@@ -105,7 +105,10 @@ int main( int i_argc, const char **ppsz_argv )
 
     printf( "return ret\n" );
 
+    /* Exit early since we did not release all the objects we used,
+     * but we don't care, our task is over */
     return 0;
+
     /* Finish the threads */
     VLC_CleanUp( 0 );