changeset 20754:da4c2344a97c

support for -dvdangle
author nicodvb
date Wed, 08 Nov 2006 00:11:42 +0000
parents f61f0fc6ee8d
children b4c865e17155
files stream/stream_dvdnav.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvdnav.c	Wed Nov 08 00:00:46 2006 +0000
+++ b/stream/stream_dvdnav.c	Wed Nov 08 00:11:42 2006 +0000
@@ -19,6 +19,7 @@
 extern char *dvd_device;
 extern int dvd_chapter;
 extern int dvd_last_chapter;
+extern int dvd_angle;
 extern char *audio_lang, *dvdsub_lang;
 
 static struct stream_priv_s {
@@ -320,6 +321,8 @@
     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(dvdnav_priv->dvdnav, DVD_MENU_Title);
   }
+  if(dvd_angle > 1)
+    dvdnav_angle_change(dvdnav_priv->dvdnav, dvd_angle);
 
   stream->sector_size = 2048;
   stream->flags = STREAM_READ | STREAM_SEEK;