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

reimar subversion at mplayerhq.hu
Sun Feb 18 22:24:27 CET 2007


Author: reimar
Date: Sun Feb 18 22:24:26 2007
New Revision: 22267

Modified:
   trunk/libvo/video_out.c

Log:
Fix 10 in r22250, do not use screendimensions if not set

Modified: trunk/libvo/video_out.c
==============================================================================
--- trunk/libvo/video_out.c	(original)
+++ trunk/libvo/video_out.c	Sun Feb 18 22:24:26 2007
@@ -332,6 +332,7 @@
   aspect_save_prescale(d_width,d_height);
   vo->control(VOCTRL_UPDATE_SCREENINFO, NULL);
 
+  if (vo_screenwidth && vo_screenheight) {
   aspect(&d_width,&d_height,A_NOZOOM);
   vo_dx = (int)(vo_screenwidth - d_width) / 2;
   vo_dy = (int)(vo_screenheight - d_height) / 2;
@@ -341,6 +342,7 @@
   vo_dy += xinerama_y;
   vo_dwidth = d_width;
   vo_dheight = d_height;
+  }
 
   return vo->config(width, height, d_width, d_height, flags, title, format);
 }



More information about the MPlayer-cvslog mailing list