fix handling of >1 consecutive media ports

fixes #610

Change-Id: I00124fa76461fe0b7e85717126628b068ebc006d
changes/85/23185/2
Richard Fuchs 7 years ago
parent 828e2eea2c
commit 135dfb73ae

@ -1328,11 +1328,8 @@ int sdp_streams(const GQueue *sessions, GQueue *streams, struct sdp_ng_flags *fl
goto next;
}
if (media->port_count != 1)
goto next;
attr = attr_get_by_id(&media->attributes, ATTR_RTCP);
if (!attr) {
if (!attr || media->port_count != 1) {
SP_SET(sp, IMPLICIT_RTCP);
goto next;
}
@ -1512,7 +1509,7 @@ static int replace_consecutive_port_count(struct sdp_chopper *chop, struct sdp_m
if (!j)
goto warn;
ps_n = j->data;
if (ps_n->selected_sfd->socket.local.port != ps->selected_sfd->socket.local.port + cons * 2) {
if (ps_n->selected_sfd->socket.local.port != ps->selected_sfd->socket.local.port + cons) {
warn:
ilog(LOG_WARN, "Failed to handle consecutive ports");
break;

Loading…
Cancel
Save