Commit 2eb87d93 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

bluray: Implement BD_EVENT_PLAYITEM event

parent eeae67fb
...@@ -97,6 +97,7 @@ struct demux_sys_t ...@@ -97,6 +97,7 @@ struct demux_sys_t
/* Titles */ /* Titles */
unsigned int i_title; unsigned int i_title;
unsigned int i_longest_title; unsigned int i_longest_title;
unsigned int i_current_clip;
input_title_t **pp_title; input_title_t **pp_title;
/* Meta informations */ /* Meta informations */
...@@ -1039,12 +1040,15 @@ static int blurayControl(demux_t *p_demux, int query, va_list args) ...@@ -1039,12 +1040,15 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
static void blurayHandleEvent( demux_t *p_demux, const BD_EVENT *e ) static void blurayHandleEvent( demux_t *p_demux, const BD_EVENT *e )
{ {
demux_sys_t *p_sys = p_demux->p_sys;
switch (e->event) switch (e->event)
{ {
case BD_EVENT_TITLE: case BD_EVENT_TITLE:
blurayUpdateTitle(p_demux, e->param); blurayUpdateTitle(p_demux, e->param);
break; break;
case BD_EVENT_PLAYITEM: case BD_EVENT_PLAYITEM:
p_sys->i_current_clip = e->param;
break; break;
case BD_EVENT_AUDIO_STREAM: case BD_EVENT_AUDIO_STREAM:
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