changeset 19780:49d6e27228bc

try to start from the root menu skipping all intros when playing dvdnav://-1; it's not guaranteed to work
author nicodvb
date Sun, 10 Sep 2006 10:48:36 +0000
parents 5fb8e4ffb34b
children 61cc28c4236a
files stream/stream_dvdnav.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Sun Sep 10 10:39:10 2006 +0000
+++ b/stream/stream_dvdnav.c	Sun Sep 10 10:48:36 2006 +0000
@@ -410,7 +410,9 @@
     mp_msg(MSGT_OPEN,MSGL_FATAL,"dvdnav_stream, couldn't select title %d, error '%s'\n", p->track, dvdnav_err_to_string(dvdnav_priv->dvdnav));
     return STREAM_UNSUPORTED;
   }
-  } else 
+  } else if(p->track == -1)
+      dvdnav_menu_call(dvdnav_priv->dvdnav, DVD_MENU_Root);
+    else
     mp_msg(MSGT_OPEN,MSGL_INFO,"dvdnav_stream, you didn't specify a track number (as in dvdnav://1), playing whole disc\n");
 
   stream->sector_size = 2048;