1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-29 04:25:55 -04:00

set these once, not each time a request comes in

svn path=/icecast/branches/kh/icecast/; revision=7905
This commit is contained in:
Karl Heyes 2004-10-02 12:17:12 +00:00
parent 0be37032d1
commit 0b55cc0e76

View File

@ -68,6 +68,8 @@ void xslt_initialize()
{
memset(cache, 0, sizeof(stylesheet_cache_t)*CACHESIZE);
thread_mutex_create("xslt", &xsltlock);
xmlSubstituteEntitiesDefault(1);
xmlLoadExtDtdDefaultValue = 1;
}
void xslt_shutdown() {
@ -153,9 +155,6 @@ void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client)
xmlChar *string;
int len;
xmlSubstituteEntitiesDefault(1);
xmlLoadExtDtdDefaultValue = 1;
thread_mutex_lock(&xsltlock);
cur = xslt_get_stylesheet(xslfilename);
thread_mutex_unlock(&xsltlock);