mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
Swap order of VFCTRL_DRAW_EOSD and VFCTRL_DRAW_OSD so that the EOSD is drawn
below the OSD and document possible issues when this is changed. Patch by Uoti (though originally intended for a different issue) with extra comment by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28841 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d4748622fa
commit
3be5ebde87
@ -415,10 +415,13 @@ int filter_video(sh_video_t *sh_video, void *frame, double pts)
|
||||
// apply video filters and call the leaf vo/ve
|
||||
int ret = vf->put_image(vf, mpi, pts);
|
||||
if (ret > 0) {
|
||||
vf->control(vf, VFCTRL_DRAW_OSD, NULL);
|
||||
// draw EOSD first so it ends up below the OSD.
|
||||
// Note that changing this is will not work right with vf_ass and the
|
||||
// vos currently always draw the EOSD first in paused mode.
|
||||
#ifdef CONFIG_ASS
|
||||
vf->control(vf, VFCTRL_DRAW_EOSD, NULL);
|
||||
#endif
|
||||
vf->control(vf, VFCTRL_DRAW_OSD, NULL);
|
||||
}
|
||||
|
||||
t2 = GetTimer()-t2;
|
||||
|
Loading…
Reference in New Issue
Block a user