Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 65fde9b

Browse files
authored
Fix multiple publications/subscriptions on single pc issue (#790)
1 parent 096269b commit 65fde9b

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From 7e4adc0f7898925ee37dfd19da21aed5d854b38e Mon Sep 17 00:00:00 2001
2+
From: Chen Li1 <[email protected]>
3+
Date: Tue, 22 Dec 2020 16:55:51 +0800
4+
Subject: [PATCH] Allow SDP info re-init
5+
6+
---
7+
erizo/src/erizo/SdpInfo.cpp | 10 ++++++++++
8+
1 file changed, 10 insertions(+)
9+
10+
diff --git a/erizo/src/erizo/SdpInfo.cpp b/erizo/src/erizo/SdpInfo.cpp
11+
index 4e13951..6b23522 100644
12+
--- a/erizo/src/erizo/SdpInfo.cpp
13+
+++ b/erizo/src/erizo/SdpInfo.cpp
14+
@@ -69,7 +69,17 @@ namespace erizo {
15+
}
16+
17+
bool SdpInfo::initWithSdp(const std::string& sdp, const std::string& media) {
18+
+ inOutPTMap.clear();
19+
+ outInPTMap.clear();
20+
+ payloadVector.clear();
21+
+ bundleTags.clear();
22+
+ extMapVector.clear();
23+
+ candidateVector_.clear();
24+
+ cryptoVector_.clear();
25+
+ payload_parsed_map_.clear();
26+
+ supported_ext_map_.clear();
27+
rids_.clear();
28+
+ parsed_order_map.clear();
29+
return processSdp(sdp, media);
30+
}
31+
std::string SdpInfo::addCandidate(const CandidateInfo& info) {
32+
--
33+
2.7.4
34+

source/agent/webrtc/sdpInfo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ class SdpInfo {
315315
singleMediaSdp(mid) {
316316
const sdp = new SdpInfo(this.toString());
317317
sdp.obj.media = sdp.obj.media.filter(m => m.mid.toString() === mid);
318+
sdp.setBundleMids([mid]);
318319
return sdp;
319320
}
320321

0 commit comments

Comments
 (0)