Do not include rtcp-xr and rtcp-fb attributes for inactive medias in the SDP.

This commit is contained in:
Ghislain MARY 2014-06-05 10:53:36 +02:00
parent fb61e1cf03
commit 3bf28e79af

View file

@ -266,11 +266,11 @@ static void stream_description_to_sdp ( belle_sdp_session_description_t *session
}
}
if ((stream->proto == SalProtoRtpAvpf) || (stream->proto == SalProtoRtpSavpf)) {
if ((rtp_port != 0) && ((stream->proto == SalProtoRtpAvpf) || (stream->proto == SalProtoRtpSavpf))) {
add_rtcp_fb_attributes(media_desc, md, stream);
}
if (stream->rtcp_xr.enabled == TRUE) {
if ((rtp_port != 0) && (stream->rtcp_xr.enabled == TRUE)) {
char sastr[1024] = {0};
char mastr[1024] = {0};
size_t saoff = 0;