summaryrefslogtreecommitdiffstats
path: root/libvo/vosub_vidix.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-16 22:25:45 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-16 22:25:45 +0000
commit131935f8ad6cd277153915c11fffcc7729cbac0b (patch)
tree1e8537e2353b40b54a37c5e85c57c4e058ed99a5 /libvo/vosub_vidix.c
parent94d68eb455836f400e31c6d83b53b6a08452eb1f (diff)
downloadmpv-131935f8ad6cd277153915c11fffcc7729cbac0b.tar.bz2
mpv-131935f8ad6cd277153915c11fffcc7729cbac0b.tar.xz
should solve -vo vesa:vidix problem 'vosub_vidix: video server has
unsupported color depth by vidix (0)' - patch by Emiel Neggers <emiel@neggers.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7027 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vosub_vidix.c')
-rw-r--r--libvo/vosub_vidix.c7
1 files changed, 7 insertions, 0 deletions
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)) ||