Skip to content

Commit

Permalink
Revert "Revert "Fixed double a=ssrc attribute in SDP for inactive m-l…
Browse files Browse the repository at this point in the history
…ine""

This reverts commit 09724e2.
  • Loading branch information
croudet committed Oct 21, 2022
1 parent 09724e2 commit 11b5fa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,8 @@ char *janus_sdp_merge(void *ice_handle, janus_sdp *anon, gboolean offer) {
a = janus_sdp_attribute_create("ssrc", "%"SCNu32" cname:janus", medium->ssrc);
m->attributes = g_list_append(m->attributes, a);
if(medium->ssrc_rtx > 0 && m->type == JANUS_SDP_VIDEO &&
janus_flags_is_set(&handle->webrtc_flags, JANUS_ICE_HANDLE_WEBRTC_RFC4588_RTX)) {
janus_flags_is_set(&handle->webrtc_flags, JANUS_ICE_HANDLE_WEBRTC_RFC4588_RTX) &&
(m->direction == JANUS_SDP_DEFAULT || m->direction == JANUS_SDP_SENDRECV || m->direction == JANUS_SDP_SENDONLY)) {
/* Add rtx SSRC group to negotiate the RFC4588 stuff */
a = janus_sdp_attribute_create("ssrc", "%"SCNu32" cname:janus", medium->ssrc_rtx);
m->attributes = g_list_append(m->attributes, a);
Expand Down

0 comments on commit 11b5fa8

Please sign in to comment.