Commit 675e2df9 authored by smorlat's avatar smorlat
Browse files

ignore unknown payloads.

git-svn-id: svn+ssh:// 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);
if (pt!=0){
ortp_message ("payload type changed to %i(%s) !",
......@@ -921,8 +921,11 @@ extern void rtcp_parse(RtpSession *session, mblk_t *mp);
static void payload_type_changed_notify(RtpSession *session, int paytype){
session-> = paytype;
rtp_signal_table_emit (&session->on_payload_type_changed);
PayloadType *pt = rtp_profile_get_payload(session->rcv.profile,paytype);
if (pt) {
session-> = 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