[Mplayer-cvslog] CVS: main/libvo mga_common.c,1.19,1.20

Arpi of Ize arpi at mplayer.dev.hu
Thu Mar 7 14:02:38 CET 2002


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

Modified Files:
	mga_common.c 
Log Message:
accept STATIC buffers if num_buffers==1

Index: mga_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/mga_common.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- mga_common.c	7 Mar 2002 02:43:35 -0000	1.19
+++ mga_common.c	7 Mar 2002 13:02:35 -0000	1.20
@@ -189,7 +189,7 @@
     uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31;
     uint32_t bespitch2 = bespitch/2;
 //    printf("mga: get_image() called\n");
-    if(mpi->type==MP_IMGTYPE_STATIC) return VO_FALSE; // it is not static
+    if(mpi->type==MP_IMGTYPE_STATIC && mga_vid_config.num_frames>1) return VO_FALSE; // it is not static
     if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // slow video ram
 //    printf("width=%d vs. bespitch=%d, flags=0x%X  \n",mpi->width,bespitch,mpi->flags);
     if((mpi->width==bespitch) ||




More information about the MPlayer-cvslog mailing list