[vlc-devel] commit: Revert broken loading of libvlc with OPTION_DLOPEN_GLOBAL in jvlc ( Alexander Bethke )

git version control git at videolan.org
Sat Aug 8 19:18:10 CEST 2009


vlc | branch: master | Alexander Bethke <abethke at oamk.fi> | Tue Aug  4 10:14:46 2009 +0300| [ee25a62ac3972a6e1f3458649d6f8db00746ef23] | committer: Rémi Denis-Courmont 

Revert broken loading of libvlc with OPTION_DLOPEN_GLOBAL in jvlc

As I understand this has been a temporary workaround for libvlccore, which seems to have been resolved.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 .../java/org/videolan/jvlc/internal/LibVlc.java    |   39 +++++++-------------
 1 files changed, 14 insertions(+), 25 deletions(-)

diff --git a/bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java b/bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
index 97aa592..67c599f 100644
--- a/bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
+++ b/bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
@@ -25,9 +25,6 @@
 
 package org.videolan.jvlc.internal;
 
-import java.util.HashMap;
-import java.util.Map;
-
 import com.sun.jna.Callback;
 import com.sun.jna.Library;
 import com.sun.jna.Native;
@@ -37,22 +34,14 @@ import com.sun.jna.Pointer;
 import com.sun.jna.PointerType;
 import com.sun.jna.Structure;
 import com.sun.jna.Union;
-import com.sun.jna.win32.W32APIFunctionMapper;
-import com.sun.jna.win32.W32APITypeMapper;
 
 
 public interface LibVlc extends Library
 {
-    Map options = new HashMap() {
-        {
-            put(Library.OPTION_DLOPEN_GLOBAL, Boolean.TRUE);
-        }
-    };
-    
-    LibVlc INSTANCE = (LibVlc) Native.loadLibrary(Platform.isWindows()? "libvlc" : "vlc", LibVlc.class, options);
+    LibVlc INSTANCE = (LibVlc) Native.loadLibrary(Platform.isWindows()? "libvlc" : "vlc", LibVlc.class);
 
     LibVlc SYNC_INSTANCE = (LibVlc) Native.synchronizedLibrary(INSTANCE);
-    
+
     public static class libvlc_exception_t extends Structure
     {
 
@@ -304,15 +293,15 @@ public interface LibVlc extends Library
     LibVlcInstance libvlc_new(int argc, String[] argv, libvlc_exception_t exception);
 
     void libvlc_release(LibVlcInstance libvlc_instance_t);
-  
+
     void libvlc_add_intf(LibVlcInstance libvlc_instance_t, String name, libvlc_exception_t exception);
-    
+
     void libvlc_wait(LibVlcInstance libvlc_instance_t);
-    
+
     String libvlc_get_version();
-    
+
     String libvlc_get_compiler();
-    
+
     String libvlc_get_changeset();
 
     // video
@@ -412,21 +401,21 @@ public interface LibVlc extends Library
     void libvlc_media_add_option(LibVlcMedia media, String option, libvlc_exception_t exception);
 
     LibVlcMedia libvlc_media_duplicate(LibVlcMedia media);
-    
+
     String libvlc_media_get_mrl(LibVlcMedia media);
 
     void libvlc_media_retain(LibVlcMedia media);
-    
+
     void libvlc_media_release(LibVlcMedia media);
-    
+
     int libvlc_media_get_state(LibVlcMedia media, libvlc_exception_t exception);
-    
+
     LibVlcMediaList libvlc_media_subitems(LibVlcMedia media, libvlc_exception_t exception);
 
     LibVlcEventManager libvlc_media_event_manager(LibVlcMedia media, libvlc_exception_t exception);
-    
+
     long libvlc_get_duration(LibVlcMedia media, libvlc_exception_t exception);
-    
+
     int libvlc_media_is_preparsed(LibVlcMedia media, libvlc_exception_t exception);
 
     // media player
@@ -455,7 +444,7 @@ public interface LibVlc extends Library
     void libvlc_media_player_set_position(LibVlcMediaPlayer instance, float position, libvlc_exception_t exception);
 
     int libvlc_media_player_is_playing(LibVlcMediaPlayer instance, libvlc_exception_t exception);
-    
+
     int libvlc_media_player_will_play(LibVlcMediaPlayer instance, libvlc_exception_t exception);
 
     void libvlc_media_player_set_rate(LibVlcMediaPlayer instance, float rate, libvlc_exception_t exception);




More information about the vlc-devel mailing list