mirror of https://github.com/mpv-player/mpv
Simplify ass_glyph_cache_reset().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19551 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8bc66b700c
commit
f5e2fac77b
|
@ -190,7 +190,7 @@ void ass_glyph_cache_init(void)
|
||||||
glyph_hash_size = 0;
|
glyph_hash_size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ass_glyph_cache_reset(void)
|
void ass_glyph_cache_done(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < GLYPH_HASH_SIZE; ++i) {
|
for (i = 0; i < GLYPH_HASH_SIZE; ++i) {
|
||||||
|
@ -203,12 +203,13 @@ void ass_glyph_cache_reset(void)
|
||||||
item = next;
|
item = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(glyph_hash_root);
|
||||||
glyph_hash_size = 0;
|
glyph_hash_size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ass_glyph_cache_done(void)
|
void ass_glyph_cache_reset(void)
|
||||||
{
|
{
|
||||||
ass_glyph_cache_reset();
|
ass_glyph_cache_done();
|
||||||
free(glyph_hash_root);
|
ass_glyph_cache_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue