summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-16 21:07:05 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-16 21:07:05 +0000
commitbf0939eb086ec42e08e73159d08525cfad531c93 (patch)
tree70c029374dd7d476376271040a520cc25529f730 /libvo
parent14f34093c3fd658633b7542578991867fe34ee14 (diff)
downloadmpv-bf0939eb086ec42e08e73159d08525cfad531c93.tar.bz2
mpv-bf0939eb086ec42e08e73159d08525cfad531c93.tar.xz
checking num_buffers for IMGTYPE_IP
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6742 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 90174cccd2..98b06a9b92 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -744,6 +744,7 @@ static uint32_t draw_frame(uint8_t *src[])
static uint32_t get_image(mp_image_t *mpi){
if(mpi->type==MP_IMGTYPE_STATIC && num_buffers>1) return VO_FALSE; // it is not static
if(mpi->type==MP_IMGTYPE_IPB && num_buffers<3 && mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // not enough
+ if(mpi->type==MP_IMGTYPE_IP && num_buffers<2 && mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // not enough
if(mpi->imgfmt!=image_format || mpi->imgfmt==IMGFMT_BGR24) return VO_FALSE; // needs conversion :(
// if(mpi->flags&MP_IMGFLAG_READABLE) return VO_FALSE; // slow video ram
if( (mpi->flags&(MP_IMGFLAG_ACCEPT_STRIDE|MP_IMGFLAG_ACCEPT_WIDTH)) ||