[xiph-commits] r7905 - icecast/branches/kh/icecast/src

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Sat Oct 2 05:17:12 PDT 2004


Author: karl
Date: 2004-10-02 05:17:12 -0700 (Sat, 02 Oct 2004)
New Revision: 7905

Modified:
   icecast/branches/kh/icecast/src/xslt.c
Log:
set these once, not each time a request comes in


Modified: icecast/branches/kh/icecast/src/xslt.c
===================================================================
--- icecast/branches/kh/icecast/src/xslt.c	2004-10-02 06:45:58 UTC (rev 7904)
+++ icecast/branches/kh/icecast/src/xslt.c	2004-10-02 12:17:12 UTC (rev 7905)
@@ -68,6 +68,8 @@
 {
     memset(cache, 0, sizeof(stylesheet_cache_t)*CACHESIZE);
     thread_mutex_create("xslt", &xsltlock);
+    xmlSubstituteEntitiesDefault(1);
+    xmlLoadExtDtdDefaultValue = 1;
 }
 
 void xslt_shutdown() {
@@ -153,9 +155,6 @@
     xmlChar *string;
     int len;
 
-    xmlSubstituteEntitiesDefault(1);
-    xmlLoadExtDtdDefaultValue = 1;
-
     thread_mutex_lock(&xsltlock);
     cur = xslt_get_stylesheet(xslfilename);
     thread_mutex_unlock(&xsltlock);



More information about the commits mailing list