[MPlayer-users] [BUG] mga_vid won't compile on Red Hat 9

Ville Saari 113762 at foo.bar.org
Thu Apr 29 23:28:37 CEST 2004


I get the following errors when trying to compile mga_vid.c on
Red Hat 9 (kernel 2.4.20, gcc 3.2.2):

mga_vid.c:1469: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
mga_vid.c:1469: too few arguments to function `remap_page_range_R2baf18f2'

This seems to fix it for me:

=======snip============
--- drivers/mga_vid.c.orig	2004-04-29 23:10:56.000000000 +0300
+++ drivers/mga_vid.c	2004-04-29 23:13:52.000000000 +0300
@@ -1461,7 +1461,7 @@
 		return(-EAGAIN);
 	}
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,3)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,20)
 	if(remap_page_range(vma, vma->vm_start, card->mem_base + card->src_base,
 		 vma->vm_end - vma->vm_start, vma->vm_page_prot)) 
 #else
=======snip============

but I don't know if it would break it for someone else.

The very first time I ran 1.0pre4 with -vo xmga, a strange thing happened:
The luma was missing (black) and only the chroma was displayed. Looked quite
spooky. When I immediately ran the exact same commandline again, everything
was fine and has been ever since.

-- 
 Ville




More information about the MPlayer-users mailing list