[vlc-commits] access: bluray: handle BD_EVENT_SEEK

Francois Cartegnie git at videolan.org
Thu Oct 25 21:55:54 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 25 10:52:48 2018 +0200| [d9dabc683666f1e66c37cc0d720e9e119a8f1ea8] | committer: Francois Cartegnie

access: bluray: handle BD_EVENT_SEEK

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9dabc683666f1e66c37cc0d720e9e119a8f1ea8
---

 modules/access/bluray.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 7c60e74b7d..9c4ea530d9 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -2755,6 +2755,15 @@ static void blurayHandleEvent(demux_t *p_demux, const BD_EVENT *e)
     case BD_EVENT_PLAYMARK:
     case BD_EVENT_ANGLE:
         break;
+    case BD_EVENT_SEEK:
+        /* Seek will happen with any chapter/title or bd_seek(),
+           but also BD-J initiated. We can't make the difference
+           between input or vm ones, better double flush/pcr reset
+           than break the clock by throwing post random access PCR */
+        blurayRestartParser(p_demux, true);
+        notifyDiscontinuityToParser(p_sys);
+        es_out_Control(p_sys->p_out, ES_OUT_RESET_PCR);
+        break;
 #if BLURAY_VERSION >= BLURAY_VERSION_CODE(0,8,1)
     case BD_EVENT_UO_MASK_CHANGED:
         /* This event could be used to grey out unselectable items in title menu */



More information about the vlc-commits mailing list