]> git.sesse.net Git - vlc/blobdiff - src/control/mediacontrol_core.c
testapi: Remove the sleep() hack.
[vlc] / src / control / mediacontrol_core.c
index 7c3c9756f49983bb0cff15a5dbcf189ca5c1b70c..cf2bba8596b1434db6d671e9f17b73bbfb1e35c4 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <vlc/vlc.h>
 #include <vlc/mediacontrol.h>
 
@@ -63,7 +67,7 @@ mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exc
     if( !retval )
         RAISE_NULL( mediacontrol_InternalException, "Out of memory" );
 
-    retval->p_instance = libvlc_new( argc, argv, &ex );
+    retval->p_instance = libvlc_new( argc, (const char**)argv, &ex );
     HANDLE_LIBVLC_EXCEPTION_NULL( &ex );
     retval->p_playlist = retval->p_instance->p_libvlc_int->p_playlist;
     return retval;
@@ -72,10 +76,7 @@ mediacontrol_Instance* mediacontrol_new( int argc, char** argv, mediacontrol_Exc
 void
 mediacontrol_exit( mediacontrol_Instance *self )
 {
-    libvlc_exception_t ex;
-    libvlc_exception_init( &ex );
-
-    libvlc_release( self->p_instance, &ex );
+    libvlc_release( self->p_instance );
 }
 
 libvlc_instance_t*