]> git.sesse.net Git - vlc/blobdiff - test/native/libvlc.c
Merge branch 'master' into lpcm_encoder
[vlc] / test / native / libvlc.c
index 2ff69fa335bfc6b4f078c633a014c7f0303ee0ab..35564a344d7b7e85add0cc6274dd733e37c19ea1 100644 (file)
@@ -42,7 +42,7 @@ PyObject *create_destroy( PyObject *self, PyObject *args )
     ASSERT( p_i1 != NULL, "Instance creation failed" );
     ASSERT_NOEXCEPTION;
     id1 = libvlc_get_vlc_id( p_i1 );
-    libvlc_destroy( p_i1, &exception );
+    libvlc_release( p_i1, &exception );
     ASSERT_NOEXCEPTION;
 
     /* Create and destroy two instances */
@@ -57,10 +57,10 @@ PyObject *create_destroy( PyObject *self, PyObject *args )
     ASSERT_NOEXCEPTION;
 
     fprintf( stderr, "Destroy 1\n" );
-    libvlc_destroy( p_i1, &exception );
+    libvlc_release( p_i1, &exception );
     ASSERT_NOEXCEPTION;
     fprintf( stderr, "Destroy 2\n" );
-    libvlc_destroy( p_i2, &exception );
+    libvlc_release( p_i2, &exception );
     ASSERT_NOEXCEPTION;
 
     /* Deinit */
@@ -89,7 +89,7 @@ PyObject *create_destroy( PyObject *self, PyObject *args )
 
     /* Initial status */
     libvlc_playlist_play( p_instance, 0, 0, argv, &exception );
-    ASSERT( libvlc_exception_raised( &exception ), 
+    ASSERT( libvlc_exception_raised( &exception ),
             "Playlist empty and exception not raised" );
 
     libvlc_exception_clear( &exception );
@@ -113,8 +113,8 @@ PyObject *create_destroy( PyObject *self, PyObject *args )
     ASSERT_NOEXCEPTION;
     ASSERT( i_playing == 0, "Playlist shouldn't be running" );
 
-    /* */ 
-    
+    /* */
     Py_INCREF( Py_None );
     return Py_None;
 }
@@ -129,7 +129,7 @@ PyObject *create_destroy( PyObject *self, PyObject *args )
 
     p_instance = libvlc_new( 2, argv, &exception );
     ASSERT_NOEXCEPTION;
-  
     /* Test that working on unexisting streams fail */
     libvlc_vlm_set_enabled( p_instance, "test", 1, &exception );
     ASSERT_EXCEPTION;