Mercurial > mplayer.hg
changeset 22324:475c60dcd459
10, checked for the wrong thing. Do aspect scaling only in config_video_out
if the vo responds that it supports this scheme by providing VOCTRL_UPDATE_SCREENINFO.
Fixes vo_xmga
author | reimar |
---|---|
date | Sun, 25 Feb 2007 14:35:53 +0000 |
parents | db082b1a4e77 |
children | 12afc06c044e |
files | libvo/video_out.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/video_out.c Sun Feb 25 14:33:19 2007 +0000 +++ b/libvo/video_out.c Sun Feb 25 14:35:53 2007 +0000 @@ -330,9 +330,8 @@ panscan_init(); aspect_save_orig(width,height); aspect_save_prescale(d_width,d_height); - vo->control(VOCTRL_UPDATE_SCREENINFO, NULL); - if (vo_screenwidth && vo_screenheight) { + if (vo->control(VOCTRL_UPDATE_SCREENINFO, NULL) == VO_TRUE) { aspect(&d_width,&d_height,A_NOZOOM); vo_dx = (int)(vo_screenwidth - d_width) / 2; vo_dy = (int)(vo_screenheight - d_height) / 2;