Commit 326b1d97 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

bluray: fix current chapter

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b7505d4a
...@@ -1932,8 +1932,11 @@ static void blurayHandleEvent(demux_t *p_demux, const BD_EVENT *e) ...@@ -1932,8 +1932,11 @@ static void blurayHandleEvent(demux_t *p_demux, const BD_EVENT *e)
blurayUpdateCurrentClip(p_demux, e->param); blurayUpdateCurrentClip(p_demux, e->param);
break; break;
case BD_EVENT_CHAPTER: 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_update |= INPUT_UPDATE_SEEKPOINT;
p_demux->info.i_seekpoint = e->param;
break; break;
case BD_EVENT_ANGLE: case BD_EVENT_ANGLE:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment