mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 12:08:11 +00:00
Fix ssrc in SDP for interop with Chrome.
This commit is contained in:
parent
cb2d37fd6e
commit
91d5a217cb
1 changed files with 2 additions and 2 deletions
|
|
@ -267,7 +267,7 @@ static void stream_description_to_sdp ( belle_sdp_session_description_t *session
|
|||
|
||||
/* insert DTLS session attribute if needed */
|
||||
if ((stream->proto == SalProtoUdpTlsRtpSavpf) || (stream->proto == SalProtoUdpTlsRtpSavp)) {
|
||||
char* ssrc_attribute = ms_strdup_printf("%u cname:%s",htonl(stream->rtp_ssrc),stream->rtcp_cname);
|
||||
char* ssrc_attribute = ms_strdup_printf("%u cname:%s",stream->rtp_ssrc,stream->rtcp_cname);
|
||||
if ((stream->dtls_role != SalDtlsRoleInvalid) && (strlen(stream->dtls_fingerprint)>0)) {
|
||||
switch(stream->dtls_role) {
|
||||
case SalDtlsRoleIsClient:
|
||||
|
|
@ -283,7 +283,7 @@ static void stream_description_to_sdp ( belle_sdp_session_description_t *session
|
|||
}
|
||||
belle_sdp_media_description_add_attribute(media_desc, belle_sdp_attribute_create("fingerprint",stream->dtls_fingerprint));
|
||||
}
|
||||
belle_sdp_media_description_add_attribute(media_desc, belle_sdp_attribute_create("ssrc",ssrc_attribute)); /* truc de Jehan a virer? */
|
||||
belle_sdp_media_description_add_attribute(media_desc, belle_sdp_attribute_create("ssrc",ssrc_attribute));
|
||||
ms_free(ssrc_attribute);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue