]> git.sesse.net Git - vlc/commitdiff
libvlc_destroy() -> libvlc_release()
authorRafaël Carré <funman@videolan.org>
Mon, 22 Oct 2007 20:06:22 +0000 (20:06 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 22 Oct 2007 20:06:22 +0000 (20:06 +0000)
activex/plugin.cpp
bindings/cil/libvlc.cs
bindings/java/src/core-jni.cc
bindings/python/vlc_instance.c
extras/MacOSX/Framework/Sources/VLCLibrary.m
test/native/libvlc.c

index 4f7908271f9fc233f89bbdf6f090bb7c5f6f4020..7ab1decd613e2e9d671cc4d9a2851445bfde83d2 100644 (file)
@@ -661,7 +661,7 @@ HRESULT VLCPlugin::onClose(DWORD dwSaveOption)
         _p_libvlc = NULL;
         vlcDataObject->onClose();
 
-        libvlc_destroy(p_libvlc, NULL );
+        libvlc_release(p_libvlc, NULL );
     }
     return S_OK;
 };
index 032f5a06c0a68012d23721d0aef047cead416a25..86c1bb8373f0a4e642d1b7be82ce1ef165dcd0ee 100644 (file)
@@ -55,7 +55,7 @@ namespace VideoLAN.LibVLC
         public static extern
         InstanceHandle Create (int argc, U8String[] argv, NativeException ex);
 
-        [DllImport ("libvlc-control.dll", EntryPoint="libvlc_destroy")]
+        [DllImport ("libvlc-control.dll", EntryPoint="libvlc_release")]
         static extern void Destroy (IntPtr ptr, NativeException ex);
 
         protected override bool ReleaseHandle ()
index 91888aa7d2ab952569604c353b78b2e571da230a..394e30cd48fee6b9e695aeac1c7d555e77fe2245 100644 (file)
@@ -81,7 +81,7 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_JVLC__1destroy (JNIEnv *env, jobje
     
     instance = getClassInstance( env, _this );
 
-    libvlc_destroy( (libvlc_instance_t *) instance, NULL);
+    libvlc_release( (libvlc_instance_t *) instance, NULL);
 
     return;
 }
index b0e495ef9acd706c5f6d6fc4373c4089af3b14d0..436d4868e079bae1122bad791d61b59192bcbad8 100644 (file)
@@ -112,7 +112,7 @@ static void
 vlcInstance_dealloc( PyObject *self )
 {
     libvlc_exception_t ex;
-    libvlc_destroy( LIBVLC_INSTANCE->p_instance, &ex );
+    libvlc_release( LIBVLC_INSTANCE->p_instance, &ex );
     PyObject_DEL( self );
 }
 
index 2578b57d433cc6c0c4f303bbe22af8f50b124945..35f5931bf9ff88be0b67266d34ac8c829d5a7107 100644 (file)
@@ -108,7 +108,7 @@ static void * DestroySharedLibraryAtExit( void )
         libvlc_exception_t ex;
         libvlc_exception_init( &ex );
         
-        libvlc_destroy( instance, &ex );
+        libvlc_release( instance, &ex );
     }
     instance = nil;
     [audio release];
index b546329f9c5674e2b292f456987b5f450ba2ccbf..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 */