Commit ee25a62a authored by Alexander Bethke's avatar Alexander Bethke Committed by 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: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 968dd88a
...@@ -25,9 +25,6 @@ ...@@ -25,9 +25,6 @@
package org.videolan.jvlc.internal; package org.videolan.jvlc.internal;
import java.util.HashMap;
import java.util.Map;
import com.sun.jna.Callback; import com.sun.jna.Callback;
import com.sun.jna.Library; import com.sun.jna.Library;
import com.sun.jna.Native; import com.sun.jna.Native;
...@@ -37,22 +34,14 @@ import com.sun.jna.Pointer; ...@@ -37,22 +34,14 @@ import com.sun.jna.Pointer;
import com.sun.jna.PointerType; import com.sun.jna.PointerType;
import com.sun.jna.Structure; import com.sun.jna.Structure;
import com.sun.jna.Union; import com.sun.jna.Union;
import com.sun.jna.win32.W32APIFunctionMapper;
import com.sun.jna.win32.W32APITypeMapper;
public interface LibVlc extends Library public interface LibVlc extends Library
{ {
Map options = new HashMap() { LibVlc INSTANCE = (LibVlc) Native.loadLibrary(Platform.isWindows()? "libvlc" : "vlc", LibVlc.class);
{
put(Library.OPTION_DLOPEN_GLOBAL, Boolean.TRUE);
}
};
LibVlc INSTANCE = (LibVlc) Native.loadLibrary(Platform.isWindows()? "libvlc" : "vlc", LibVlc.class, options);
LibVlc SYNC_INSTANCE = (LibVlc) Native.synchronizedLibrary(INSTANCE); LibVlc SYNC_INSTANCE = (LibVlc) Native.synchronizedLibrary(INSTANCE);
public static class libvlc_exception_t extends Structure public static class libvlc_exception_t extends Structure
{ {
...@@ -304,15 +293,15 @@ public interface LibVlc extends Library ...@@ -304,15 +293,15 @@ public interface LibVlc extends Library
LibVlcInstance libvlc_new(int argc, String[] argv, libvlc_exception_t exception); LibVlcInstance libvlc_new(int argc, String[] argv, libvlc_exception_t exception);
void libvlc_release(LibVlcInstance libvlc_instance_t); void libvlc_release(LibVlcInstance libvlc_instance_t);
void libvlc_add_intf(LibVlcInstance libvlc_instance_t, String name, libvlc_exception_t exception); void libvlc_add_intf(LibVlcInstance libvlc_instance_t, String name, libvlc_exception_t exception);
void libvlc_wait(LibVlcInstance libvlc_instance_t); void libvlc_wait(LibVlcInstance libvlc_instance_t);
String libvlc_get_version(); String libvlc_get_version();
String libvlc_get_compiler(); String libvlc_get_compiler();
String libvlc_get_changeset(); String libvlc_get_changeset();
// video // video
...@@ -412,21 +401,21 @@ public interface LibVlc extends Library ...@@ -412,21 +401,21 @@ public interface LibVlc extends Library
void libvlc_media_add_option(LibVlcMedia media, String option, libvlc_exception_t exception); void libvlc_media_add_option(LibVlcMedia media, String option, libvlc_exception_t exception);
LibVlcMedia libvlc_media_duplicate(LibVlcMedia media); LibVlcMedia libvlc_media_duplicate(LibVlcMedia media);
String libvlc_media_get_mrl(LibVlcMedia media); String libvlc_media_get_mrl(LibVlcMedia media);
void libvlc_media_retain(LibVlcMedia media); void libvlc_media_retain(LibVlcMedia media);
void libvlc_media_release(LibVlcMedia media); void libvlc_media_release(LibVlcMedia media);
int libvlc_media_get_state(LibVlcMedia media, libvlc_exception_t exception); int libvlc_media_get_state(LibVlcMedia media, libvlc_exception_t exception);
LibVlcMediaList libvlc_media_subitems(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); LibVlcEventManager libvlc_media_event_manager(LibVlcMedia media, libvlc_exception_t exception);
long libvlc_get_duration(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); int libvlc_media_is_preparsed(LibVlcMedia media, libvlc_exception_t exception);
// media player // media player
...@@ -455,7 +444,7 @@ public interface LibVlc extends Library ...@@ -455,7 +444,7 @@ public interface LibVlc extends Library
void libvlc_media_player_set_position(LibVlcMediaPlayer instance, float position, libvlc_exception_t exception); 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_is_playing(LibVlcMediaPlayer instance, libvlc_exception_t exception);
int libvlc_media_player_will_play(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); void libvlc_media_player_set_rate(LibVlcMediaPlayer instance, float rate, libvlc_exception_t exception);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment