[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] Small Bug fixes for oRTP
From: |
Vadim Lebedev |
Subject: |
[Linphone-developers] Small Bug fixes for oRTP |
Date: |
Fri, 20 Nov 2009 19:49:28 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
The RTP specs explains that conforming implementation should ignore
incoming packets with unrecognized payloads:
So 'ive fixed two function is rtpsession.c to behave correctly:
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){
session->hw_recv_pt=paytype;
ortp_message ("payload type changed to %i(%s) !",
paytype,pt->mime_type);
payload_type_changed(session,pt);
}else{
ortp_warning("Receiving packet with unknown payload type
%i.",paytype);
}
}
static void payload_type_changed_notify(RtpSession *session, int paytype){
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);
}
}
Thanks
Vadim
- [Linphone-developers] Small Bug fixes for oRTP,
Vadim Lebedev <=