diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-03 09:28:58 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-03 09:28:58 +0000 |
commit | 104c125e6d512736abb1e07a60071da06b984548 (patch) | |
tree | cf546899c35d9042528724dd346c5adf0678bdec /dec_video.c | |
parent | c4d519e1938327e2771f7a8e7d262adaca62c578 (diff) | |
download | mpv-104c125e6d512736abb1e07a60071da06b984548.tar.bz2 mpv-104c125e6d512736abb1e07a60071da06b984548.tar.xz |
Allows to users control direct rendering
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4495 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dec_video.c b/dec_video.c index f47204d983..d521724dc0 100644 --- a/dec_video.c +++ b/dec_video.c @@ -747,6 +747,7 @@ if ((sh_video->codec->driver == VFM_QTRLE) && (sh_video->bih->biBitCount != 24)) return 1; } +extern int vaa_use_dr; #ifdef USE_LIBVO2 int decode_video(vo2_handle_t *video_out,sh_video_t *sh_video,unsigned char *start,int in_size,int drop_frame){ #else @@ -776,6 +777,7 @@ painted = 0; use_dr = 0; if(vo_vaa.query_bes_da) use_dr = vo_vaa.query_bes_da(&bda) ? 0 : 1; + if(!vaa_use_dr) use_dr = 0; #ifdef USE_MP_IMAGE if(mpi->type!=MP_IMGTYPE_EXPORT) if( !(mpi->flags&MP_IMGFLAG_ALLOCATED) && !(mpi->flags&MP_IMGFLAG_DIRECT) ){ |