[MPlayer-cvslog] r19551 - trunk/libass/ass_cache.c
eugeni
subversion at mplayerhq.hu
Sat Aug 26 22:09:55 CEST 2006
Author: eugeni
Date: Sat Aug 26 22:09:54 2006
New Revision: 19551
Modified:
trunk/libass/ass_cache.c
Log:
Simplify ass_glyph_cache_reset().
Modified: trunk/libass/ass_cache.c
==============================================================================
--- trunk/libass/ass_cache.c (original)
+++ trunk/libass/ass_cache.c Sat Aug 26 22:09:54 2006
@@ -190,7 +190,7 @@
glyph_hash_size = 0;
}
-void ass_glyph_cache_reset(void)
+void ass_glyph_cache_done(void)
{
int i;
for (i = 0; i < GLYPH_HASH_SIZE; ++i) {
@@ -203,12 +203,13 @@
item = next;
}
}
+ free(glyph_hash_root);
glyph_hash_size = 0;
}
-void ass_glyph_cache_done(void)
+void ass_glyph_cache_reset(void)
{
- ass_glyph_cache_reset();
- free(glyph_hash_root);
+ ass_glyph_cache_done();
+ ass_glyph_cache_init();
}
More information about the MPlayer-cvslog
mailing list