[MPlayer-dev-eng] mga_vid.c fix (!?)

Michael Lampe Michael.Lampe at iwr.uni-heidelberg.de
Fri Oct 26 15:02:36 CEST 2001


The original mga_vid.c corrupts the mouse pointer on my system (XFree
4.1.0, G400 32M SGRAM) while playback. Lowering mga_src_base by 1K
helps. Of course, I don't understand anything from this stuff, but that
it steals memory from the X xerver without making him aware. My guess is
that the pixmap for the hardware cursor is on the upper end.

-Michael
-------------- next part --------------
*** mga_vid.c.old	Fri Oct 26 14:53:40 2001
--- mga_vid.c	Fri Oct 26 14:54:34 2001
***************
*** 1097,1103 ****
  				return(-EFAULT);
  			}
  			
! 			mga_src_base = (mga_ram_size*0x100000-mga_config.num_frames*mga_config.frame_size);
  			if(mga_src_base<0){
  				printk(KERN_ERR "mga_vid: not enough memory for frames!\n");
  				return(-EFAULT);
--- 1097,1103 ----
  				return(-EFAULT);
  			}
  			
! 			mga_src_base = (mga_ram_size*0x100000-mga_config.num_frames*mga_config.frame_size-1024);
  			if(mga_src_base<0){
  				printk(KERN_ERR "mga_vid: not enough memory for frames!\n");
  				return(-EFAULT);


More information about the MPlayer-dev-eng mailing list