[MPlayer-cvslog] r22342 - trunk/libvo/video_out.c

reimar subversion at mplayerhq.hu
Sun Feb 25 15:35:54 CET 2007


Author: reimar
Date: Sun Feb 25 15:35:53 2007
New Revision: 22342

Modified:
   trunk/libvo/video_out.c

Log:
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


Modified: trunk/libvo/video_out.c
==============================================================================
--- trunk/libvo/video_out.c	(original)
+++ trunk/libvo/video_out.c	Sun Feb 25 15:35:53 2007
@@ -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;



More information about the MPlayer-cvslog mailing list