Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
08f1edc9
Commit
08f1edc9
authored
Dec 13, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tell jna to load libvlc with RTLD_GLOBAL option
parent
541ab326
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
...core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
+12
-1
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
View file @
08f1edc9
...
@@ -25,6 +25,9 @@
...
@@ -25,6 +25,9 @@
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
;
...
@@ -34,11 +37,19 @@ import com.sun.jna.Pointer;
...
@@ -34,11 +37,19 @@ 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
{
{
LibVlc
INSTANCE
=
(
LibVlc
)
Native
.
loadLibrary
(
Platform
.
isWindows
()?
"libvlc"
:
"vlc"
,
LibVlc
.
class
);
Map
options
=
new
HashMap
()
{
{
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment