git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1404
d0543943-73ff-0310-b7d9-
9358b9ac24b2
static switch_status_t load_config(void)
{
char *cf = "portaudio.conf";
+ switch_xml_t cfg, xml, settings, param;
memset(&globals, 0, sizeof(globals));
switch_xml_t tag = NULL;
switch_xml_t xml = NULL;
switch_xml_binding_t *binding;
-
+ uint8_t loops = 0;
+
switch_mutex_lock(XML_LOCK);
+
for(binding = BINDINGS; binding; binding = binding->next) {
if ((xml = binding->function(section, tag_name, key_name, key_value))) {
const char *err = NULL;
xml = NULL;
*node = NULL;
*root = NULL;
+ if (loops++ > 1) {
+ break;
+ }
}
}