[Android] Add the libvlc patch to restore a DVD position
Nicolas Pomepuy
git at videolan.org
Fri Jan 24 15:53:14 CET 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Jan 24 15:22:33 2020 +0100| [fe3fb5a03dda55cfadf661f9705de36282509eb2] | committer: Nicolas Pomepuy
Add the libvlc patch to restore a DVD position
> https://code.videolan.org/videolan/vlc-android/commit/fe3fb5a03dda55cfadf661f9705de36282509eb2
---
.../patches/vlc3/0006-access-dvdnav-dvd-seek.patch | 44 ++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/libvlc/patches/vlc3/0006-access-dvdnav-dvd-seek.patch b/libvlc/patches/vlc3/0006-access-dvdnav-dvd-seek.patch
new file mode 100644
index 000000000..ed3355741
--- /dev/null
+++ b/libvlc/patches/vlc3/0006-access-dvdnav-dvd-seek.patch
@@ -0,0 +1,44 @@
+From c55df8cf7000758ba28c0000d4a402e4034d948d Mon Sep 17 00:00:00 2001
+Message-Id: <c55df8cf7000758ba28c0000d4a402e4034d948d.1579874292.git.nicolas at videolabs.io>
+From: Francois Cartegnie <fcvlcdev at free.fr>
+Date: Wed, 22 Jan 2020 18:58:32 +0100
+Subject: [PATCH] access: dvdnav: dvd seek
+
+---
+ modules/access/dvdnav.c | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
+index 36638d7680..9415372b13 100644
+--- a/modules/access/dvdnav.c
++++ b/modules/access/dvdnav.c
+@@ -59,6 +59,8 @@
+
+
+ #include <dvdnav/dvdnav.h>
++/* Expose without patching headers */
++dvdnav_status_t dvdnav_jump_to_sector_by_time(dvdnav_t *, uint64_t, int32_t);
+
+ #include "../demux/mpeg/pes.h"
+ #include "../demux/mpeg/ps.h"
+@@ -602,6 +604,17 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
+ return VLC_EGENERIC;
+ }
+
++ case DEMUX_SET_TIME:
++ {
++ mtime_t i_time = va_arg( args, mtime_t );
++ if( dvdnav_jump_to_sector_by_time( p_sys->dvdnav,
++ i_time * 90 / 1000,
++ SEEK_SET ) == DVDNAV_STATUS_OK )
++ return VLC_SUCCESS;
++ msg_Err( p_demux, "can't set time to %" PRId64, i_time );
++ return VLC_EGENERIC;
++ }
++
+ /* Special for access_demux */
+ case DEMUX_CAN_PAUSE:
+ case DEMUX_CAN_SEEK:
+--
+2.17.1
+
More information about the Android
mailing list