[vlc-commits] bluray: fix current chapter

Petri Hintukainen git at videolan.org
Sun Nov 22 21:32:23 CET 2015


vlc/vlc-2.2 | branch: master | Petri Hintukainen <phintuka at gmail.com> | Wed Nov 18 09:59:25 2015 +0200| [97cad1a33a26b3c2a54b66685fe76e427478c9ab] | committer: Jean-Baptiste Kempf

bluray: fix current chapter

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 326b1d971b94b66c7c2535155ac13fae666752f5)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/access/bluray.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index a11ddd2..f883c99 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1621,8 +1621,11 @@ static void blurayHandleEvent(demux_t *p_demux, const BD_EVENT *e)
         blurayUpdateCurrentClip(p_demux, e->param);
         break;
     case BD_EVENT_CHAPTER:
+        if (e->param && e->param < 0xffff)
+          p_demux->info.i_seekpoint = e->param - 1;
+        else
+          p_demux->info.i_seekpoint = 0;
         p_demux->info.i_update |= INPUT_UPDATE_SEEKPOINT;
-        p_demux->info.i_seekpoint = e->param;
         break;
     case BD_EVENT_ANGLE:
         break;



More information about the vlc-commits mailing list