From cf350b07f0ab1b4dfd704db8301dd1824cb75fb7 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 5 Jan 2008 14:22:05 +0000 Subject: implemented _ANGLE STREAM_CTRLs, patch by oattila chello hu git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25601 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvd.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'stream') diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index 5b9be4a882..0c40d947b7 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -743,6 +743,25 @@ static int control(stream_t *stream,int cmd,void* arg) *((double *)arg) = !d->vts_file->vtsi_mat->vts_video_attr.display_aspect_ratio ? 4.0/3.0 : 16.0/9.0; return 1; } + case STREAM_CTRL_GET_NUM_ANGLES: + { + *((int *)arg) = d->vmg_file->tt_srpt->title[dvd_title].nr_of_angles; + return 1; + } + case STREAM_CTRL_GET_ANGLE: + { + *((int *)arg) = dvd_angle+1; + return 1; + } + case STREAM_CTRL_SET_ANGLE: + { + int ang = *((int *)arg); + if(ang>d->vmg_file->tt_srpt->title[dvd_title].nr_of_angles || ang<=0) + break; + dvd_angle = ang - 1; + d->angle_seek = 1; + return 1; + } } return STREAM_UNSUPPORTED; } -- cgit v1.2.3