[Mplayer-cvslog] CVS: main/libvo vosub_vidix.c,1.15,1.16

Alex Beregszaszi alex at mplayer.dev.hu
Sun Jan 20 14:29:05 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv28850

Modified Files:
	vosub_vidix.c 
Log Message:
added support for unlimited video resolution (-1)

Index: vosub_vidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vosub_vidix.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vosub_vidix.c	19 Jan 2002 22:42:08 -0000	1.15
+++ vosub_vidix.c	20 Jan 2002 13:29:02 -0000	1.16
@@ -3,6 +3,7 @@
  *  vosub_vidix.c
  *
  *	Copyright (C) Nick Kurshev <nickols_k at mail.ru> - 2002
+ *	Copyright (C) Alex Beregszaszi
  *
  *  You can redistribute this file under terms and conditions
  *  of GNU General Public licence v2.
@@ -86,12 +87,18 @@
 	    "format=%s dest_bpp=%u vid_w=%u vid_h=%u\n"
 	    ,src_width,src_height,x_org,y_org,dst_width,dst_height
 	    ,vo_format_name(format),dest_bpp,vid_w,vid_h);
-	if(vid_w > vidix_cap.maxwidth || vid_w < vidix_cap.minwidth ||
-	   vid_h > vidix_cap.maxheight || vid_h < vidix_cap.minheight)
+
+	if(((vidix_cap.maxwidth != -1) && (vid_w > vidix_cap.maxwidth)) ||
+	    ((vidix_cap.minwidth != -1) && (vid_w < vidix_cap.minwidth)) ||
+	    ((vidix_cap.maxheight != -1) && (vid_h > vidix_cap.maxheight)) ||
+	    ((vidix_cap.minwidth != -1 ) && (vid_h < vidix_cap.minheight)))
 	{
-	  printf("vosub_vidix: video server has unsupported resolution by vidix\n");
+	  printf("vosub_vidix: video server has unsupported resolution (%dx%d), supported: %dx%d-%dx%d\n",
+	    vid_w, vid_h, vidix_cap.minwidth, vidix_cap.minheight,
+	    vidix_cap.maxwidth, vidix_cap.maxheight);
 	  return -1;
 	}
+
 	err = 0;
 	switch(dest_bpp)
 	{




More information about the MPlayer-cvslog mailing list