mirror of https://github.com/mpv-player/mpv
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:
parent
0e5dd90bf2
commit
9227bb4a99
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue