Prevents from duplicating existing SSRCs with 'source-add' in remote description.

This commit is contained in:
paweldomas 2015-07-31 09:49:23 +02:00
parent 3289f6f68e
commit 50e67a0658
1 changed files with 4 additions and 0 deletions

View File

@ -844,6 +844,10 @@ JingleSession.prototype.addSource = function (elem, fromJid) {
console.warn("Got add stream request for my own ssrc: "+ssrc);
return;
}
if (sdp.containsSSRC(ssrc)) {
console.warn("Source-add request for existing SSRC: " + ssrc);
return;
}
$(this).find('>parameter').each(function () {
lines += 'a=ssrc:' + ssrc + ' ' + $(this).attr('name');
if ($(this).attr('value') && $(this).attr('value').length)