changeset 7026:a3126e9099b4

should solve -vo vesa:vidix problem 'vosub_vidix: video server has unsupported color depth by vidix (0)' - patch by Emiel Neggers <emiel@neggers.net>
author arpi
date Fri, 16 Aug 2002 22:25:45 +0000
parents 3bc8ff93d64e
children c9a4dfaa9868
files libvo/vosub_vidix.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vosub_vidix.c	Fri Aug 16 22:23:50 2002 +0000
+++ b/libvo/vosub_vidix.c	Fri Aug 16 22:25:45 2002 +0000
@@ -460,6 +460,13 @@
 	    ,src_width,src_height,x_org,y_org,dst_width,dst_height
 	    ,vo_format_name(format),dest_bpp,vid_w,vid_h);
 
+	if(vidix_query_fourcc(format) == 0)
+	{
+	  printf("vosub_vidix: unsupported fourcc for this vidix driver: %x (%s)\n",
+	    format,vo_format_name(format));
+	  return -1;
+	} 
+
 	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)) ||