浏览代码

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

master
paweldomas 10 年前
父节点
当前提交
50e67a0658
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      modules/xmpp/JingleSession.js

+ 4
- 0
modules/xmpp/JingleSession.js 查看文件

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

正在加载...
取消
保存