Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0a53ef61
Commit
0a53ef61
authored
Jul 19, 2008
by
Filippo Carone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jvlc: fix the native type for drawable
parent
61888921
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
...core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
+2
-2
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
.../src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
+3
-4
No files found.
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlc.java
View file @
0a53ef61
...
...
@@ -41,7 +41,7 @@ public interface LibVlc extends Library
LibVlc
INSTANCE
=
(
LibVlc
)
Native
.
loadLibrary
(
"vlc"
,
LibVlc
.
class
);
LibVlc
SYNC_INSTANCE
=
(
LibVlc
)
Native
.
synchronizedLibrary
(
INSTANCE
);
public
static
class
libvlc_exception_t
extends
Structure
{
...
...
@@ -414,7 +414,7 @@ public interface LibVlc extends Library
void
libvlc_media_player_stop
(
LibVlcMediaInstance
media_player
,
libvlc_exception_t
exception
);
void
libvlc_media_player_set_drawable
(
LibVlcMediaInstance
libvlc_media_player
,
long
drawable
,
void
libvlc_media_player_set_drawable
(
LibVlcMediaInstance
libvlc_media_player
,
int
drawable
,
libvlc_exception_t
exception
);
long
libvlc_media_player_get_length
(
LibVlcMediaInstance
instance
,
libvlc_exception_t
exception
);
...
...
bindings/java/core/src/main/java/org/videolan/jvlc/internal/LibVlcImpl.java
View file @
0a53ef61
...
...
@@ -48,7 +48,7 @@ public class LibVlcImpl
public
static
void
main
(
String
[]
args
)
throws
InterruptedException
{
LibVlc
libVlc
=
LibVlc
.
INSTANCE
;
LibVlc
libVlc
=
LibVlc
.
SYNC_
INSTANCE
;
libvlc_exception_t
exception
=
new
libvlc_exception_t
();
libVlc
.
libvlc_exception_init
(
exception
);
...
...
@@ -117,10 +117,9 @@ public class LibVlcImpl
frame
.
getContentPane
().
add
(
panel
);
frame
.
pack
();
long
drawable
=
com
.
sun
.
jna
.
Native
.
getComponentID
(
canvas
);
int
drawable
=
(
int
)
com
.
sun
.
jna
.
Native
.
getComponentID
(
canvas
);
libVlc
.
libvlc_video_set_parent
(
libvlc_instance_t
,
drawable
,
exception
);
libVlc
.
libvlc_media_player_play
(
mediaPlayer
,
exception
);
libVlc
.
libvlc_media_player_set_drawable
(
mediaPlayer
,
drawable
,
exception
);
}
}
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