From 9227bb4a99aacfcd18a872d61e22f07e239958ad Mon Sep 17 00:00:00 2001 From: henry Date: Sun, 11 Sep 2005 15:08:48 +0000 Subject: [PATCH] use slices if DR isn't available git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16457 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_screenshot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmpcodecs/vf_screenshot.c b/libmpcodecs/vf_screenshot.c index b85c9a4438..e917cf94cc 100644 --- a/libmpcodecs/vf_screenshot.c +++ b/libmpcodecs/vf_screenshot.c @@ -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){