summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-25 14:35:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-25 14:35:53 +0000
commit510ccabfc2b19cffcac78aaf5f7c0d4341179268 (patch)
tree507eb717e0ccc8b6ed5b8249c9157f0ce55d0e58 /libvo
parent72fa22f6b03b1b43f09e47d1aafd2a4551735402 (diff)
downloadmpv-510ccabfc2b19cffcac78aaf5f7c0d4341179268.tar.bz2
mpv-510ccabfc2b19cffcac78aaf5f7c0d4341179268.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22342 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/video_out.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index fd32849753..588a132678 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -330,9 +330,8 @@ int config_video_out(vo_functions_t *vo, uint32_t width, uint32_t height,
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;