[vlc-devel] [PATCH 3/6] bluray: Implement BD_EVENT_PLAYITEM event
Hugo Beauzée-Luyssen
beauze.h at gmail.com
Thu Mar 8 16:08:32 CET 2012
---
modules/access/bluray.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 28bb597..6af8455 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -97,6 +97,7 @@ struct demux_sys_t
/* Titles */
unsigned int i_title;
unsigned int i_longest_title;
+ unsigned int i_current_clip;
input_title_t **pp_title;
unsigned int i_first_play;
unsigned int i_top_menu;
@@ -1057,12 +1058,15 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
static void blurayHandleEvent( demux_t *p_demux, const BD_EVENT *e )
{
+ demux_sys_t *p_sys = p_demux->p_sys;
+
switch (e->event)
{
case BD_EVENT_TITLE:
blurayUpdateTitle(p_demux, e->param);
break;
case BD_EVENT_PLAYITEM:
+ p_sys->i_current_clip = e->param;
break;
case BD_EVENT_AUDIO_STREAM:
break;
--
1.7.9.3
More information about the vlc-devel
mailing list