[Mplayer-cvslog] CVS: main/libvo mga_common.c,1.27,1.28

Arpi of Ize arpi at mplayer.dev.hu
Sun Mar 31 22:39:40 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv21805

Modified Files:
	mga_common.c 
Log Message:
use only 1 buffers if dr=yes and double=no

Index: mga_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/mga_common.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- mga_common.c	30 Mar 2002 18:09:30 -0000	1.27
+++ mga_common.c	31 Mar 2002 20:39:38 -0000	1.28
@@ -257,7 +257,7 @@
 static int mga_init(){
 	char *frame_mem;
 
-	mga_vid_config.num_frames=4;
+	mga_vid_config.num_frames=(vo_directrendering && !vo_doublebuffering)?1:3;
 	mga_vid_config.version=MGA_VID_VERSION;
 	if (ioctl(f,MGA_VID_CONFIG,&mga_vid_config))
 	{
@@ -266,6 +266,8 @@
 		return -1;
 	}
 	ioctl(f,MGA_VID_ON,0);
+	
+	printf("[mga] Using %d buffers.\n",mga_vid_config.num_frames);
 
 	frames[0] = (char*)mmap(0,mga_vid_config.frame_size*mga_vid_config.num_frames,PROT_WRITE,MAP_SHARED,f,0);
 	frames[1] = frames[0] + 1*mga_vid_config.frame_size;




More information about the MPlayer-cvslog mailing list