From 5cc6005c86b2988f1cb1f6b0910dce1e2eb30075 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Wed, 8 Nov 2006 00:11:42 +0000 Subject: [PATCH] support for -dvdangle git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20770 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvdnav.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index d6ea3e6c49..bf5783ad65 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -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 @@ 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(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;