]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 10 May 2006 03:40:52 +0000 (03:40 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 10 May 2006 03:40:52 +0000 (03:40 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1404 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_portaudio/mod_portaudio.c
src/switch_xml.c

index aa5857c5329fa9a299d781285cf71ce70e5e8631..5d424234db9be1718f1917d0c4c20345187d3223 100644 (file)
@@ -567,6 +567,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
 static switch_status_t load_config(void)
 {
        char *cf = "portaudio.conf";
+       switch_xml_t cfg, xml, settings, param;
 
        memset(&globals, 0, sizeof(globals));
 
index 2125f2f3b5983d67ae6363b17e86caa0f34162aa..65a0d3a3b57731e3d113c801fbd03582a54c9677 100644 (file)
@@ -751,8 +751,10 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate(char *section,
        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;
@@ -801,6 +803,9 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate(char *section,
                        xml = NULL;
                        *node = NULL;
                        *root = NULL;
+                       if (loops++ > 1) {
+                               break;
+                       }
                }
        }