Mercurial > mplayer.hg
diff mplayer.c @ 31927:6e0b5a97e00f
EOSD/ASS code factorization
Move some code that was partially duplicated between vf_vo and vf_ass with
subtle differences into a separate file.
author | cigaes |
---|---|
date | Mon, 23 Aug 2010 19:13:05 +0000 |
parents | 8c6e90c5fcc4 |
children | 68574c0269e4 |
line wrap: on
line diff
--- a/mplayer.c Sun Aug 22 23:38:40 2010 +0000 +++ b/mplayer.c Mon Aug 23 19:13:05 2010 +0000 @@ -124,6 +124,7 @@ #include "spudec.h" #include "subreader.h" #include "vobsub.h" +#include "eosd.h" #ifdef CONFIG_X11 #include "libvo/x11_common.h" @@ -2322,10 +2323,11 @@ #endif sh_video->vfilter=append_filters(sh_video->vfilter); + eosd_init(sh_video->vfilter); #ifdef CONFIG_ASS if (ass_enabled) - ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_INIT_EOSD, ass_library); + eosd_ass_init(ass_library); #endif current_module="init_video_codec";