From 6e12a26f065c15ef5597610f54b35347d46d92b5 Mon Sep 17 00:00:00 2001 From: arpi Date: Thu, 7 Mar 2002 13:02:35 +0000 Subject: [PATCH] accept STATIC buffers if num_buffers==1 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4976 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/mga_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/mga_common.c b/libvo/mga_common.c index f0fcfe7523..89f779ec62 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -189,7 +189,7 @@ get_image(mp_image_t *mpi){ 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) ||