summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-19 11:47:46 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-19 11:47:46 +0000
commit33f7abfe2c8140922ddf90c28b43744957cdae3f (patch)
treeaedb394cc4aee9fe053a79383a403382e9e3cf91 /libvo
parent08ca24c62d1aac0d138b9cd3b9a0c846108d26a9 (diff)
downloadmpv-33f7abfe2c8140922ddf90c28b43744957cdae3f.tar.bz2
mpv-33f7abfe2c8140922ddf90c28b43744957cdae3f.tar.xz
Improve error message when screen width and height are not set.
patch by Christian Ohm, chr.ohm gmx net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27802 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_cvidix.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/libvo/vo_cvidix.c b/libvo/vo_cvidix.c
index 0f7de905dc..2fe250c611 100644
--- a/libvo/vo_cvidix.c
+++ b/libvo/vo_cvidix.c
@@ -81,10 +81,15 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,uint32_t d_h
if(vo_screenwidth && vo_screenheight){
if(!vo_geometry)center=1;
}
- else mp_msg(MSGT_VO, MSGL_WARN, "vo_cvidix: warn: screenwidth and height not set assuming 640x480\n");
}
- if(!vo_screenwidth)vo_screenwidth=640;
- if(!vo_screenheight)vo_screenheight=480;
+ if(!vo_screenwidth){
+ mp_msg(MSGT_VO, MSGL_WARN, "vo_cvidix: Screen width not set (see -screenw), assuming 640 pixels.\n");
+ vo_screenwidth = 640;
+ }
+ if(!vo_screenheight){
+ mp_msg(MSGT_VO, MSGL_WARN, "vo_cvidix: Screen height not set (see -screenh), assuming 480 pixels.\n");
+ vo_screenheight = 480;
+ }
swidth = width;
sheight = height;
sformat = format;