Commit d320db7e authored by Filippo Carone's avatar Filippo Carone

jvlc: load the correct libvlc library on windows

parent 829dfded
...@@ -29,6 +29,7 @@ import com.sun.jna.Callback; ...@@ -29,6 +29,7 @@ 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;
import com.sun.jna.NativeLong; import com.sun.jna.NativeLong;
import com.sun.jna.Platform;
import com.sun.jna.Pointer; 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;
...@@ -37,8 +38,7 @@ import com.sun.jna.Union; ...@@ -37,8 +38,7 @@ import com.sun.jna.Union;
public interface LibVlc extends Library public interface LibVlc extends Library
{ {
LibVlc INSTANCE = (LibVlc) Native.loadLibrary(Platform.isLinux()? "vlc" : "libvlc", LibVlc.class);
LibVlc INSTANCE = (LibVlc) Native.loadLibrary("vlc", LibVlc.class);
LibVlc SYNC_INSTANCE = (LibVlc) Native.synchronizedLibrary(INSTANCE); LibVlc SYNC_INSTANCE = (LibVlc) Native.synchronizedLibrary(INSTANCE);
......
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