summaryrefslogtreecommitdiffstats
path: root/libass/ass_cache.c
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-26 19:00:21 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-26 19:00:21 +0000
commit8b4274d71f055c9c1354413933c4ba071bfac288 (patch)
tree818a814b8c5c9375961dc4417bd5b2ef9cc42e31 /libass/ass_cache.c
parenta0f422546d2902029303bba64ece315a2cdf6a2b (diff)
downloadmpv-8b4274d71f055c9c1354413933c4ba071bfac288.tar.bz2
mpv-8b4274d71f055c9c1354413933c4ba071bfac288.tar.xz
Reset glyph cache on reconfigure.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19545 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_cache.c')
-rw-r--r--libass/ass_cache.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libass/ass_cache.c b/libass/ass_cache.c
index 5d400ed6e7..8409e2d622 100644
--- a/libass/ass_cache.c
+++ b/libass/ass_cache.c
@@ -190,7 +190,7 @@ void ass_glyph_cache_init(void)
glyph_hash_size = 0;
}
-void ass_glyph_cache_done(void)
+void ass_glyph_cache_reset(void)
{
int i;
for (i = 0; i < GLYPH_HASH_SIZE; ++i) {
@@ -203,7 +203,12 @@ void ass_glyph_cache_done(void)
item = next;
}
}
- free(glyph_hash_root);
glyph_hash_size = 0;
}
+void ass_glyph_cache_done(void)
+{
+ ass_glyph_cache_reset();
+ free(glyph_hash_root);
+}
+