Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
12
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
1b9325d1
Commit
1b9325d1
authored
7 years ago
by
Thomas Guillem
Browse files
Options
Downloads
Patches
Plain Diff
LibVLC: add EsSelected event
parent
a1775f6b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libvlc/jni/libvlcjni-mediaplayer.c
+2
-0
2 additions, 0 deletions
libvlc/jni/libvlcjni-mediaplayer.c
libvlc/src/org/videolan/libvlc/MediaPlayer.java
+2
-1
2 additions, 1 deletion
libvlc/src/org/videolan/libvlc/MediaPlayer.java
with
4 additions
and
1 deletion
libvlc/jni/libvlcjni-mediaplayer.c
+
2
−
0
View file @
1b9325d1
...
...
@@ -41,6 +41,7 @@ static const libvlc_event_type_t mp_events[] = {
libvlc_MediaPlayerVout
,
libvlc_MediaPlayerESAdded
,
libvlc_MediaPlayerESDeleted
,
libvlc_MediaPlayerESSelected
,
libvlc_MediaPlayerSeekableChanged
,
libvlc_MediaPlayerPausableChanged
,
-
1
,
...
...
@@ -91,6 +92,7 @@ MediaPlayer_event_cb(vlcjni_object *p_obj, const libvlc_event_t *p_ev,
break
;
case
libvlc_MediaPlayerESAdded
:
case
libvlc_MediaPlayerESDeleted
:
case
libvlc_MediaPlayerESSelected
:
p_java_event
->
arg1
=
p_ev
->
u
.
media_player_es_changed
.
i_type
;
p_java_event
->
arg2
=
p_ev
->
u
.
media_player_es_changed
.
i_id
;
break
;
...
...
This diff is collapsed.
Click to expand it.
libvlc/src/org/videolan/libvlc/MediaPlayer.java
+
2
−
1
View file @
1b9325d1
...
...
@@ -67,7 +67,7 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
//public static final int ScrambledChanged = 0x113;
public
static
final
int
ESAdded
=
0x114
;
public
static
final
int
ESDeleted
=
0x115
;
//
public static final int ESSelected = 0x116;
public
static
final
int
ESSelected
=
0x116
;
protected
Event
(
int
type
)
{
super
(
type
);
...
...
@@ -1109,6 +1109,7 @@ public class MediaPlayer extends VLCObject<MediaPlayer.Event> {
return
new
Event
(
eventType
,
arg1
);
case
Event
.
ESAdded
:
case
Event
.
ESDeleted
:
case
Event
.
ESSelected
:
return
new
Event
(
eventType
,
arg1
,
arg2
);
case
Event
.
SeekableChanged
:
case
Event
.
PausableChanged
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment