Merge pull request #1470 from urmyfaith/patch-1

remove duplicate line `rtc_media.type`
This commit is contained in:
Xiaofeng Wang 2022-03-04 17:20:51 +08:00 committed by GitHub
commit ae62d44447
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -779,7 +779,6 @@ void RtcSession::loadFrom(const string &str) {
auto mline = media.getItemClass<SdpMedia>('m');
this->media.emplace_back();
auto &rtc_media = this->media.back();
rtc_media.type = mline.type;
rtc_media.mid = media.getStringItem('a', "mid");
rtc_media.proto = mline.proto;
rtc_media.type = mline.type;