[vlc-commits] access: bluray: handle BD_EVENT_SEEK

Francois Cartegnie git at videolan.org
Tue Oct 30 18:12:49 CET 2018


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

access: bluray: handle BD_EVENT_SEEK

(cherry picked from commit d9dabc683666f1e66c37cc0d720e9e119a8f1ea8)

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

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

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 426ad097c8..47a2ceb156 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -2592,6 +2592,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