summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-24 19:14:05 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-24 19:14:05 +0000
commite28bd7c6dee5cb060c08777a6c90d30df4aa6c4b (patch)
tree020ce3adc0eb95c2324092ed5ba03caf01e9885a /stream/stream_dvdnav.c
parent9b72cde1256c262aee64ba2b0c1d4e24c2b4c108 (diff)
downloadmpv-e28bd7c6dee5cb060c08777a6c90d30df4aa6c4b.tar.bz2
mpv-e28bd7c6dee5cb060c08777a6c90d30df4aa6c4b.tar.xz
Add new command to switch between dvdnav titles
Based on parts of dvdnav monster patches from Otvos Attila git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25845 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r--stream/stream_dvdnav.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index d8d97bf217..03231b017b 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -759,6 +759,15 @@ void mp_dvdnav_get_highlight (stream_t *stream, nav_highlight_t *hl) {
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",