fix handling of >1 consecutive media ports

fixes #610

Change-Id: I00124fa76461fe0b7e85717126628b068ebc006d
changes/85/23185/2
Richard Fuchs 8 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; goto next;
} }
if (media->port_count != 1)
goto next;
attr = attr_get_by_id(&media->attributes, ATTR_RTCP); attr = attr_get_by_id(&media->attributes, ATTR_RTCP);
if (!attr) { if (!attr || media->port_count != 1) {
SP_SET(sp, IMPLICIT_RTCP); SP_SET(sp, IMPLICIT_RTCP);
goto next; goto next;
} }
@ -1512,7 +1509,7 @@ static int replace_consecutive_port_count(struct sdp_chopper *chop, struct sdp_m
if (!j) if (!j)
goto warn; goto warn;
ps_n = j->data; 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: warn:
ilog(LOG_WARN, "Failed to handle consecutive ports"); ilog(LOG_WARN, "Failed to handle consecutive ports");
break; break;

Loading…
Cancel
Save