mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
set these once, not each time a request comes in
svn path=/icecast/branches/kh/icecast/; revision=7905
This commit is contained in:
parent
0be37032d1
commit
0b55cc0e76
@ -68,6 +68,8 @@ void xslt_initialize()
|
|||||||
{
|
{
|
||||||
memset(cache, 0, sizeof(stylesheet_cache_t)*CACHESIZE);
|
memset(cache, 0, sizeof(stylesheet_cache_t)*CACHESIZE);
|
||||||
thread_mutex_create("xslt", &xsltlock);
|
thread_mutex_create("xslt", &xsltlock);
|
||||||
|
xmlSubstituteEntitiesDefault(1);
|
||||||
|
xmlLoadExtDtdDefaultValue = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void xslt_shutdown() {
|
void xslt_shutdown() {
|
||||||
@ -153,9 +155,6 @@ void xslt_transform(xmlDocPtr doc, const char *xslfilename, client_t *client)
|
|||||||
xmlChar *string;
|
xmlChar *string;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
xmlSubstituteEntitiesDefault(1);
|
|
||||||
xmlLoadExtDtdDefaultValue = 1;
|
|
||||||
|
|
||||||
thread_mutex_lock(&xsltlock);
|
thread_mutex_lock(&xsltlock);
|
||||||
cur = xslt_get_stylesheet(xslfilename);
|
cur = xslt_get_stylesheet(xslfilename);
|
||||||
thread_mutex_unlock(&xsltlock);
|
thread_mutex_unlock(&xsltlock);
|
||||||
|
Loading…
Reference in New Issue
Block a user