use slices if DR isn't available

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16457 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2005-09-11 15:08:48 +00:00
parent 0e5dd90bf2
commit 9227bb4a99
1 changed files with 6 additions and 0 deletions

View File

@ -181,6 +181,12 @@ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){
vf->dmpi= vf_get_image(vf->next, mpi->imgfmt,
mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->width, mpi->height);
if((vf->dmpi->flags & MP_IMGFLAG_DRAW_CALLBACK) &&
!(vf->dmpi->flags & MP_IMGFLAG_DIRECT)){
// use slices if DR isn't possible
return;
}
mpi->planes[0]=vf->dmpi->planes[0];
mpi->stride[0]=vf->dmpi->stride[0];
if(mpi->flags&MP_IMGFLAG_PLANAR){