summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-18 21:24:26 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-18 21:24:26 +0000
commitbaf7535196cf3d0f8e580df1316e482649db88c8 (patch)
tree91f9b8d8c213c6bd18249c16abc8c2ae6e3a946c /libvo
parent3c32a11ae5e61b753288074547aba1d3c7c7fe7c (diff)
downloadmpv-baf7535196cf3d0f8e580df1316e482649db88c8.tar.bz2
mpv-baf7535196cf3d0f8e580df1316e482649db88c8.tar.xz
Fix 10 in r22250, do not use screendimensions if not set
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22267 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/video_out.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index b8ec45ed14..fd32849753 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -332,6 +332,7 @@ int config_video_out(vo_functions_t *vo, uint32_t width, uint32_t height,
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 @@ int config_video_out(vo_functions_t *vo, uint32_t width, uint32_t height,
vo_dy += xinerama_y;
vo_dwidth = d_width;
vo_dheight = d_height;
+ }
return vo->config(width, height, d_width, d_height, flags, title, format);
}