[Mplayer-cvslog] CVS: main/libvo vesa_lvo.c,1.12,1.13

Nick Kurshev nick at mplayer.dev.hu
Sun Dec 2 13:21:16 CET 2001


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

Modified Files:
	vesa_lvo.c 
Log Message:
Fixed single buffering problems and -vo mga compatibility by number of buffers

Index: vesa_lvo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vesa_lvo.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- vesa_lvo.c	29 Nov 2001 18:37:52 -0000	1.12
+++ vesa_lvo.c	2 Dec 2001 12:21:13 -0000	1.13
@@ -29,7 +29,7 @@
 #include "video_out.h"
 
 #define WIDTH_ALIGN 32 /* should be 16 for rage:422 and 32 for rage:420 */
-#define NUM_FRAMES 2
+#define NUM_FRAMES 10
 #define UNUSED(x) ((void)(x)) /**< Removes warning about unused arguments */
 
 static uint8_t *frames[NUM_FRAMES];
@@ -211,9 +211,12 @@
 void     vlvo_flip_page(void)
 {
   if(verbose > 1) printf("vesa_lvo: vlvo_flip_page() was called\n");
+  if(vo_doublebuffering)
+  {
 	ioctl(lvo_handler,MGA_VID_FSEL,&next_frame);
 	next_frame=(next_frame+1)%mga_vid_config.num_frames;
 	lvo_mem=frames[next_frame];
+  }	
 }
 
 static void draw_alpha_null(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride)




More information about the MPlayer-cvslog mailing list