# HG changeset patch # User diego # Date 1156436756 0 # Node ID 1dc1c55328e29516389f6275d811d4547c7ceaf0 # Parent 4440aa9939dc42d333bb7e066fac17d4d09cebc4 Fix MEncoder build when bitmap fonts are disabled. diff -r 4440aa9939dc -r 1dc1c55328e2 Makefile --- a/Makefile Thu Aug 24 15:38:28 2006 +0000 +++ b/Makefile Thu Aug 24 16:25:56 2006 +0000 @@ -39,7 +39,6 @@ mp_msg-mencoder.c \ $(SRCS_COMMON) \ libvo/aclib.c \ - libvo/font_load.c \ libvo/osd.c \ libvo/sub.c \ parser-mecmd.c \ @@ -247,6 +246,9 @@ COMMON_LIBS += libass/libass.a PARTS += libass endif +ifeq ($(BITMAP_FONT),yes) +SRCS_MENCODER += libvo/font_load.c +endif # FontConfig and FreeType need to come after ASS to avoid link failures on MinGW COMMON_LIBS += $(FONTCONFIG_LIB) ifeq ($(FREETYPE),yes) diff -r 4440aa9939dc -r 1dc1c55328e2 mencoder.c --- a/mencoder.c Thu Aug 24 15:38:28 2006 +0000 +++ b/mencoder.c Thu Aug 24 16:25:56 2006 +0000 @@ -534,6 +534,7 @@ if(!font_fontconfig) { #endif +#ifdef HAVE_BITMAP_FONT if(font_name){ vo_font=read_font_desc(font_name,font_factor,verbose>1); if(!vo_font) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadFont,font_name); @@ -543,6 +544,7 @@ if(!vo_font) vo_font=read_font_desc(MPLAYER_DATADIR "/font/font.desc",font_factor,verbose>1); } +#endif #ifdef HAVE_FONTCONFIG } #endif