summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-29 00:16:08 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-29 00:16:08 +0000
commit7252c0e78e29587cb40aa36da4d888da987be9a5 (patch)
tree097f265e26645b8622d3c3c7763049e66031ea00 /stream/stream_dvdnav.c
parent2e4f57d04d6cc814f21e09147582265400f3b115 (diff)
downloadmpv-7252c0e78e29587cb40aa36da4d888da987be9a5.tar.bz2
mpv-7252c0e78e29587cb40aa36da4d888da987be9a5.tar.xz
when no title is chosen -identify all titles present in the dvd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25196 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r--stream/stream_dvdnav.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index 75c20ac4f4..30b68c6c7c 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -397,6 +397,12 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
mp_msg(MSGT_OPEN,MSGL_INFO,"dvdnav_stream, you didn't specify a track number (as in dvdnav://1), playing whole disc\n");
dvdnav_menu_call(priv->dvdnav, DVD_MENU_Title);
}
+ if(p->track <= 0 && mp_msg_test(MSGT_IDENTIFY, MSGL_INFO)) {
+ uint32_t titles=0, i;
+ dvdnav_get_number_of_titles(priv->dvdnav, &titles);
+ for(i=0; i<titles; i++)
+ identify_chapters(priv->dvdnav, i);
+ }
if(dvd_angle > 1)
dvdnav_angle_change(priv->dvdnav, dvd_angle);