[vlc-commits] bluray: Implement BD_EVENT_PLAYITEM event
Hugo Beauzée-Luyssen
git at videolan.org
Mon Apr 16 14:14:23 CEST 2012
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Mar 8 14:08:32 2012 +0000| [2eb87d93a973d2159206c54d23c0208465bad1d2] | committer: Hugo Beauzée-Luyssen
bluray: Implement BD_EVENT_PLAYITEM event
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2eb87d93a973d2159206c54d23c0208465bad1d2
---
modules/access/bluray.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 38c619e..14bc619 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;
/* Meta informations */
@@ -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 )
{
+ 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;
More information about the vlc-commits
mailing list