implemented STREAM_CTRL_GET_ASPECT_RATIO

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24323 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2007-09-01 21:00:18 +00:00
parent 7ac5a60a2b
commit 4da74f1f7b
1 changed files with 6 additions and 0 deletions

View File

@ -326,6 +326,12 @@ static int control(stream_t *stream, int cmd, void* arg) {
}
break;
}
case STREAM_CTRL_GET_ASPECT_RATIO:
{
uint8_t ar = dvdnav_get_video_aspect(priv->dvdnav);
*((double *)arg) = !ar ? 4.0/3.0 : 16.0/9.0;
return 1;
}
#ifdef MP_DVDNAV
case STREAM_CTRL_GET_CURRENT_TIME:
{