Mercurial > mplayer.hg
changeset 6741:65f26506053d
checking num_buffers for IMGTYPE_IP
author | michael |
---|---|
date | Tue, 16 Jul 2002 21:07:05 +0000 |
parents | 913736867009 |
children | 93bce3460e2a |
files | libvo/vo_xv.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_xv.c Tue Jul 16 12:04:30 2002 +0000 +++ b/libvo/vo_xv.c Tue Jul 16 21:07:05 2002 +0000 @@ -744,6 +744,7 @@ 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)) ||