This repository was archived by the owner on Oct 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ From 7e4adc0f7898925ee37dfd19da21aed5d854b38e Mon Sep 17 00:00:00 2001
2+ From: Chen Li1 <li1.chen@intel.com>
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+
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments