From 80b34ad1ee6b462994ce1f66889bc49cd56f5354 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 6 Mar 2012 04:34:49 +0000 Subject: Fix #1457: removed check for remote SDP media count before calling find_audio_index() in pjsua_media_channel_create_sdp(), so find_audio_index() will also verify the media count in the remote SDP. git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3962 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsua-lib/pjsua_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c index f56b8f5b..d36c9fc2 100644 --- a/pjsip/src/pjsua-lib/pjsua_media.c +++ b/pjsip/src/pjsua-lib/pjsua_media.c @@ -1341,7 +1341,7 @@ pj_status_t pjsua_media_channel_create_sdp(pjsua_call_id call_id, return PJ_EBUSY; } - if (rem_sdp && rem_sdp->media_count != 0) { + if (rem_sdp) { pj_bool_t srtp_active; #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) -- cgit v1.2.3