changeset 31251:ff83a7122367

Do not use libass functions if it is disabled. Fixes compilation if freetype is not available.
author reimar
date Fri, 04 Jun 2010 18:46:22 +0000
parents a7c91e121d79
children eff096c1ea0a
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Jun 04 17:11:56 2010 +0000
+++ b/mplayer.c	Fri Jun 04 18:46:22 2010 +0000
@@ -2587,7 +2587,7 @@
 	vobsub_seek(vo_vobsub, mpctx->sh_video->pts);
     }
 
-#if defined(LIBASS_VERSION) && LIBASS_VERSION >= 0x00910000
+#if defined(CONFIG_ASS) && defined(LIBASS_VERSION) && LIBASS_VERSION >= 0x00910000
     if (ass_enabled && mpctx->d_sub->sh && ((sh_sub_t *)mpctx->d_sub->sh)->ass_track)
         ass_flush_events(((sh_sub_t *)mpctx->d_sub->sh)->ass_track);
 #endif