]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
regression from last commit
authorAnthony Minessale <anthm@freeswitch.org>
Sun, 10 Nov 2013 17:11:37 +0000 (22:11 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Sun, 10 Nov 2013 17:11:37 +0000 (22:11 +0500)
src/switch_core_media.c

index daa535981f80de83bba5780226f897ebbaad5f91..758b2816a4a231d0a80db4f3895f73b023667a7f 100644 (file)
@@ -488,7 +488,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_get_payload_code(switch_core
                        found++;
                }
        }
-       switch_mutex_lock(smh->sdp_mutex);
+       switch_mutex_unlock(smh->sdp_mutex);
 
        if (found) {
                if (ptP) {
@@ -5783,7 +5783,7 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
                                        if (orig_session && 
                                                switch_core_session_get_payload_code(orig_session, 
                                                                                                                         imp->codec_type == SWITCH_CODEC_TYPE_AUDIO ? SWITCH_MEDIA_TYPE_AUDIO : SWITCH_MEDIA_TYPE_VIDEO,
-                                                                                                                        imp->iananame, NULL, &orig_pt) == SWITCH_STATUS_SUCCESS) {
+                                                                                                                        imp->iananame, &orig_pt, NULL) == SWITCH_STATUS_SUCCESS) {
                                                smh->ianacodes[i] = orig_pt;
                                        } else {
                                                smh->ianacodes[i] = (switch_payload_t)smh->payload_space++;