summaryrefslogtreecommitdiffstats
path: root/libass/ass_shaper.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2017-09-05 21:15:40 -0500
committerRodger Combs <rodger.combs@gmail.com>2017-10-22 06:38:51 -0500
commit68f25e2c26de2c5c3624bf0fe6d12a0e9c35e861 (patch)
tree976bab143307d46582206e41d8e147729f5a16d0 /libass/ass_shaper.c
parent9b874841274ef0262872c53f9b9eb5d2bc054c8f (diff)
downloadlibass-68f25e2c26de2c5c3624bf0fe6d12a0e9c35e861.tar.bz2
libass-68f25e2c26de2c5c3624bf0fe6d12a0e9c35e861.tar.xz
ass_set_fonts: empty cache as well
Diffstat (limited to 'libass/ass_shaper.c')
-rw-r--r--libass/ass_shaper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libass/ass_shaper.c b/libass/ass_shaper.c
index 5f24c5a..657885b 100644
--- a/libass/ass_shaper.c
+++ b/libass/ass_shaper.c
@@ -121,6 +121,13 @@ void ass_shaper_free(ASS_Shaper *shaper)
free(shaper);
}
+void ass_shaper_empty_cache(ASS_Shaper *shaper)
+{
+#ifdef CONFIG_HARFBUZZ
+ ass_cache_empty(shaper->metrics_cache);
+#endif
+}
+
void ass_shaper_font_data_free(ASS_ShaperFontData *priv)
{
#ifdef CONFIG_HARFBUZZ