Commit 675e2df9 authored by smorlat's avatar smorlat

ignore unknown payloads.

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@777 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
parent 491c4802
......@@ -595,8 +595,8 @@ rtp_session_set_ssrc (RtpSession * session, uint32_t ssrc)
void rtp_session_update_payload_type(RtpSession *session, int paytype){
/* check if we support this payload type */
PayloadType *pt=rtp_profile_get_payload(session->rcv.profile,paytype);
session->hw_recv_pt=paytype;
if (pt!=0){
session->hw_recv_pt=paytype;
ortp_message ("payload type changed to %i(%s) !",
paytype,pt->mime_type);
payload_type_changed(session,pt);
......@@ -921,8 +921,11 @@ extern void rtcp_parse(RtpSession *session, mblk_t *mp);
static void payload_type_changed_notify(RtpSession *session, int paytype){
session->rcv.pt = paytype;
rtp_signal_table_emit (&session->on_payload_type_changed);
PayloadType *pt = rtp_profile_get_payload(session->rcv.profile,paytype);
if (pt) {
session->rcv.pt = paytype;
rtp_signal_table_emit (&session->on_payload_type_changed);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment