mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 04:02:06 +00:00
direct rendering can be disabled -vaa_nodr
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4977 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6e12a26f06
commit
26973b9162
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user