Mercurial > mplayer.hg
diff stream/stream_dvdnav.c @ 25817:883c6c3ae041
Add new command to switch between dvdnav titles
Based on parts of dvdnav monster patches from Otvos Attila
author | ben |
---|---|
date | Thu, 24 Jan 2008 19:14:05 +0000 |
parents | 68015115f63a |
children | 2f6ad8c8ebf3 |
line wrap: on
line diff
--- a/stream/stream_dvdnav.c Wed Jan 23 22:34:51 2008 +0000 +++ b/stream/stream_dvdnav.c Thu Jan 24 19:14:05 2008 +0000 @@ -759,6 +759,15 @@ hl->ey = hlev.ey; } +void mp_dvdnav_switch_title (stream_t *stream, int title) { + dvdnav_priv_t *priv = (dvdnav_priv_t *) stream->priv; + uint32_t titles; + + dvdnav_get_number_of_titles (priv->dvdnav, &titles); + if (title > 0 && title <= titles) + dvdnav_title_play (priv->dvdnav, title); +} + const stream_info_t stream_info_dvdnav = { "DVDNAV stream", "null",