From 131935f8ad6cd277153915c11fffcc7729cbac0b Mon Sep 17 00:00:00 2001 From: arpi Date: Fri, 16 Aug 2002 22:25:45 +0000 Subject: should solve -vo vesa:vidix problem 'vosub_vidix: video server has unsupported color depth by vidix (0)' - patch by Emiel Neggers git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7027 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vosub_vidix.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libvo/vosub_vidix.c') diff --git a/libvo/vosub_vidix.c b/libvo/vosub_vidix.c index 47589f2584..d67d30c78c 100644 --- a/libvo/vosub_vidix.c +++ b/libvo/vosub_vidix.c @@ -460,6 +460,13 @@ int vidix_init(unsigned src_width,unsigned src_height, ,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)) || -- cgit v1.2.3