[vlc-commits] bluray: fix current chapter
Petri Hintukainen
git at videolan.org
Thu Nov 19 00:16:38 CET 2015
vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Wed Nov 18 09:59:25 2015 +0200| [326b1d971b94b66c7c2535155ac13fae666752f5] | committer: Jean-Baptiste Kempf
bluray: fix current chapter
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=326b1d971b94b66c7c2535155ac13fae666752f5
---
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 9a79291..f7c5284 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1932,8 +1932,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