changeset 27768:ffd1bd7043e6

Improve error message when screen width and height are not set. patch by Christian Ohm, chr.ohm gmx net
author diego
date Sun, 19 Oct 2008 11:47:46 +0000
parents 54cb5f23eff8
children 80d3dab37bb2
files libvo/vo_cvidix.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_cvidix.c	Sun Oct 19 11:27:10 2008 +0000
+++ b/libvo/vo_cvidix.c	Sun Oct 19 11:47:46 2008 +0000
@@ -81,10 +81,15 @@
     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;