summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-06-04 18:46:22 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-06-04 18:46:22 +0000
commit5bd98b116aa72d6937b18fd66217dfba9d250855 (patch)
tree8f4c48ae4b19af90bb90d765987b7ff098fa2e5e /mplayer.c
parente41db025181b2160499a1f424468ab303779c64e (diff)
downloadmpv-5bd98b116aa72d6937b18fd66217dfba9d250855.tar.bz2
mpv-5bd98b116aa72d6937b18fd66217dfba9d250855.tar.xz
Do not use libass functions if it is disabled.
Fixes compilation if freetype is not available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31317 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 97fa6aae91..c7b13fcb25 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2587,7 +2587,7 @@ static int seek(MPContext *mpctx, double amount, int style)
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