Mercurial > mplayer.hg
changeset 16456:34eb986b7e4a
use slices if DR isn't available
author | henry |
---|---|
date | Sun, 11 Sep 2005 15:08:48 +0000 |
parents | 4ca10b94b629 |
children | 5ab14fa7a019 |
files | libmpcodecs/vf_screenshot.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_screenshot.c Sun Sep 11 15:02:49 2005 +0000 +++ b/libmpcodecs/vf_screenshot.c Sun Sep 11 15:08:48 2005 +0000 @@ -181,6 +181,12 @@ 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){