summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2012-03-06 04:34:49 +0000
committerNanang Izzuddin <nanang@teluu.com>2012-03-06 04:34:49 +0000
commit80b34ad1ee6b462994ce1f66889bc49cd56f5354 (patch)
treeb070a588e0b5a9361577fe18e8b75df974cc812f
parent3110b10b458935b951ff351a309b54f451ff7d22 (diff)
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
-rw-r--r--pjsip/src/pjsua-lib/pjsua_media.c2
1 files changed, 1 insertions, 1 deletions
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)