changeset 25168:644be6d209a2

when no title is chosen -identify all titles present in the dvd
author nicodvb
date Thu, 29 Nov 2007 00:16:08 +0000
parents 89b5a20fc346
children db94ecd7e7f1
files stream/stream_dvdnav.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Thu Nov 29 00:13:11 2007 +0000
+++ b/stream/stream_dvdnav.c	Thu Nov 29 00:16:08 2007 +0000
@@ -397,6 +397,12 @@
     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);