[Android] jni: rename mediaplayer event name
Martin Finkel
git at videolan.org
Tue Mar 15 10:33:27 UTC 2022
vlc-android | branch: master | Martin Finkel <me at martinfinkel.com> | Mon Mar 14 16:30:00 2022 +0700| [77e69fa8404e73e9a29946c373374d2e931983e8] | committer: Martin Finkel
jni: rename mediaplayer event name
> https://code.videolan.org/videolan/vlc-android/commit/77e69fa8404e73e9a29946c373374d2e931983e8
---
libvlc/jni/libvlcjni-mediaplayer.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libvlc/jni/libvlcjni-mediaplayer.c b/libvlc/jni/libvlcjni-mediaplayer.c
index ae87598ff..694ff8a3a 100644
--- a/libvlc/jni/libvlcjni-mediaplayer.c
+++ b/libvlc/jni/libvlcjni-mediaplayer.c
@@ -36,7 +36,11 @@ static const libvlc_event_type_t mp_events[] = {
libvlc_MediaPlayerPlaying,
libvlc_MediaPlayerPaused,
libvlc_MediaPlayerStopped,
+#if defined(LIBVLC_VERSION_MAJOR) && LIBVLC_VERSION_MAJOR >= 4
+ libvlc_MediaPlayerStopping,
+#else
libvlc_MediaPlayerEndReached,
+#endif
libvlc_MediaPlayerEncounteredError,
libvlc_MediaPlayerTimeChanged,
libvlc_MediaPlayerPositionChanged,
More information about the Android
mailing list