[MPlayer-cvslog] CVS: main/libmpcodecs vf_screenshot.c,1.3,1.4

Jindrich Makovicka CVS syncmail at mplayerhq.hu
Sun Sep 11 17:08:50 CEST 2005


CVS change done by Jindrich Makovicka CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv31829

Modified Files:
	vf_screenshot.c 
Log Message:
use slices if DR isn't available

Index: vf_screenshot.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_screenshot.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- vf_screenshot.c	11 Sep 2005 12:16:12 -0000	1.3
+++ vf_screenshot.c	11 Sep 2005 15:08:48 -0000	1.4
@@ -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){




More information about the MPlayer-cvslog mailing list