linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Small Bug fixes for oRTP


From: Simon Morlat
Subject: Re: [Linphone-developers] Small Bug fixes for oRTP
Date: Mon, 23 Nov 2009 14:24:51 +0100

Hi Vadim,

Sorry I can't see what you changed in these functions. Maybe a diff
would be more appropriate ?

Simon

Le vendredi 20 novembre 2009 à 19:49 +0100, Vadim Lebedev a écrit :
> 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 mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers






reply via email to

[Prev in Thread] Current Thread [Next in Thread]