From 26973b9162bd448ae50a051d332a47847604b0da Mon Sep 17 00:00:00 2001 From: arpi Date: Thu, 7 Mar 2002 13:09:10 +0000 Subject: [PATCH] direct rendering can be disabled -vaa_nodr git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4977 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmpcodecs/vd.c b/libmpcodecs/vd.c index 966966aafa..a7db03dd6f 100644 --- a/libmpcodecs/vd.c +++ b/libmpcodecs/vd.c @@ -63,6 +63,7 @@ vd_functions_t* mpcodecs_vd_drivers[] = { }; #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 @@ mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, i // 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!