[Android] LibVLC: add EsSelected event

Thomas Guillem git at videolan.org
Fri Mar 31 15:31:47 CEST 2017


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar 31 11:10:09 2017 +0200| [1b9325d151baee48bdc70f8cf2b367f31f29a689] | committer: Thomas Guillem

LibVLC: add EsSelected event

> https://code.videolan.org/videolan/vlc-android/commit/1b9325d151baee48bdc70f8cf2b367f31f29a689
---

 libvlc/jni/libvlcjni-mediaplayer.c              | 2 ++
 libvlc/src/org/videolan/libvlc/MediaPlayer.java | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/libvlc/jni/libvlcjni-mediaplayer.c b/libvlc/jni/libvlcjni-mediaplayer.c
index 628f7de..353d99d 100644
--- a/libvlc/jni/libvlcjni-mediaplayer.c
+++ b/libvlc/jni/libvlcjni-mediaplayer.c
@@ -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;
diff --git a/libvlc/src/org/videolan/libvlc/MediaPlayer.java b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
index 6c81e10..43c6888 100644
--- a/libvlc/src/org/videolan/libvlc/MediaPlayer.java
+++ b/libvlc/src/org/videolan/libvlc/MediaPlayer.java
@@ -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:



More information about the Android mailing list