Bug 996329: remove trailing space from m=application SDP lines r=ehugg

This commit is contained in:
Randell Jesup 2014-04-15 14:00:59 -04:00
parent b674de9ffc
commit f0300f6626
2 changed files with 2 additions and 2 deletions

View File

@ -1578,7 +1578,7 @@ sdp_result_e sdp_build_media (sdp_t *sdp_p, u16 level, flex_string *fs)
}
} else {
/* Add port to SDP if transport is DTLS/SCTP */
flex_string_sprintf(fs, " %u ", (u32)mca_p->sctpport);
flex_string_sprintf(fs, " %u", (u32)mca_p->sctpport);
}
flex_string_sprintf(fs, "\r\n");

View File

@ -2817,7 +2817,7 @@ TEST_F(SignalingTest, missingUfrag)
"a=candidate:0 2 UDP 2113601790 192.168.178.20 50769 typ host\r\n"
"a=candidate:1 2 UDP 1694236670 77.9.79.167 50769 typ srflx raddr "
"192.168.178.20 rport 50769\r\n"
"m=application 54054 DTLS/SCTP 5000 \r\n"
"m=application 54054 DTLS/SCTP 5000\r\n"
"c=IN IP4 77.9.79.167\r\n"
"a=fmtp:HuRUu]Dtcl\\zM,7(OmEU%O$gU]x/z\tD protocol=webrtc-datachannel;"
"streams=16\r\n"