summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vd.c')
-rw-r--r--libmpcodecs/vd.c3
1 files changed, 2 insertions, 1 deletions
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!