# HG changeset patch # User arpi # Date 1015506550 0 # Node ID 0780634e64b5a720aaf8e9f09105c85c38c05bb7 # Parent 877f0f643fefd39fb46719405fd150afd4022dea direct rendering can be disabled -vaa_nodr diff -r 877f0f643fef -r 0780634e64b5 libmpcodecs/vd.c --- 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!