changeset 4975:877f0f643fef

accept STATIC buffers if num_buffers==1
author arpi
date Thu, 07 Mar 2002 13:02:35 +0000
parents 5da7b1522a9f
children 0780634e64b5
files libvo/mga_common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/mga_common.c	Thu Mar 07 11:57:33 2002 +0000
+++ b/libvo/mga_common.c	Thu Mar 07 13:02:35 2002 +0000
@@ -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) ||