[vlc-commits] dvdnav: implement INPUT_NAV_MENU
Petri Hintukainen
git at videolan.org
Fri May 13 10:59:22 CEST 2016
vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Fri May 13 10:53:57 2016 +0200| [89682d39710ecfbc8cecec166cf0f106987a9acf] | committer: Jean-Baptiste Kempf
dvdnav: implement INPUT_NAV_MENU
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89682d39710ecfbc8cecec166cf0f106987a9acf
---
modules/access/dvdnav.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index e1b6ade..9b6d266 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -736,6 +736,26 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
break;
}
+ case DEMUX_NAV_MENU:
+ {
+ if( dvdnav_menu_call( p_sys->dvdnav, DVD_MENU_Title )
+ != DVDNAV_STATUS_OK )
+ {
+ msg_Warn( p_demux, "cannot select Title menu" );
+ if( dvdnav_menu_call( p_sys->dvdnav, DVD_MENU_Root )
+ != DVDNAV_STATUS_OK )
+ {
+ msg_Warn( p_demux, "cannot select Root menu" );
+ return VLC_EGENERIC;
+ }
+ }
+ p_demux->info.i_update |=
+ INPUT_UPDATE_TITLE | INPUT_UPDATE_SEEKPOINT;
+ p_demux->info.i_title = 0;
+ p_demux->info.i_seekpoint = 2;
+ break;
+ }
+
/* TODO implement others */
default:
return VLC_EGENERIC;
More information about the vlc-commits
mailing list