1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00

Move direct-rendering hack from vo_xvmc to vf_vo, so it does not need to

be duplicated for other systems like VDPAU or VAAPI.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28581 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2009-02-15 08:07:36 +00:00
parent f8b220a35c
commit 078091e5de
2 changed files with 4 additions and 2 deletions

View File

@ -165,7 +165,10 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt){
static void get_image(struct vf_instance_s* vf,
mp_image_t *mpi){
if(vo_directrendering && vo_config_count)
if(!vo_config_count) return;
// GET_IMAGE is required for hardware-accelerated formats
if(vo_directrendering ||
IMGFMT_IS_XVMC(mpi->imgfmt) || IMGFMT_IS_VDPAU(mpi->imgfmt))
video_out->control(VOCTRL_GET_IMAGE,mpi);
}

View File

@ -683,7 +683,6 @@ skip_surface_allocation:
free_element = 0;
first_frame = 1;
vo_directrendering = 1;//ugly hack, coz xvmc works only with direct rendering
image_format=format;
return 0;
}