diff libmpcodecs/vd.c @ 4976:0780634e64b5

direct rendering can be disabled -vaa_nodr
author arpi
date Thu, 07 Mar 2002 13:09:10 +0000
parents fa002f25631e
children f412b0110524
line wrap: on
line diff
--- a/libmpcodecs/vd.c	Thu Mar 07 13:02:35 2002 +0000
+++ b/libmpcodecs/vd.c	Thu Mar 07 13:09:10 2002 +0000
@@ -63,6 +63,7 @@
 };
 
 #include "libvo/video_out.h"
+extern int vaa_use_dr;
 
 int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outfmt){
 
@@ -127,7 +128,7 @@
 
 	// check libvo first!
 	vo_functions_t* vo=sh->video_out;
-	if(vo) vo->control(VOCTRL_GET_IMAGE,mpi);
+	if(vo && vaa_use_dr) vo->control(VOCTRL_GET_IMAGE,mpi);
 	
         if(!(mpi->flags&MP_IMGFLAG_DIRECT)){
           // non-direct and not yet allocaed image. allocate it!