aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpcodecs/vd.c
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-07 13:09:10 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-07 13:09:10 +0000
commit26973b9162bd448ae50a051d332a47847604b0da (patch)
tree6c9a333f6bbe97121b81503e94a793321cb8bc26 /libmpcodecs/vd.c
parent6e12a26f065c15ef5597610f54b35347d46d92b5 (diff)
direct rendering can be disabled -vaa_nodr
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4977 b3059339-0415-0410-9bf9-f77b7e298cf2
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!