remove dumplicate line rtc_media.type

remove  dumplicate line 

`rtc_media.type = mline.type;`
This commit is contained in:
zx 2022-03-04 16:18:26 +08:00 committed by GitHub
parent 6ea6054073
commit cd4e772985
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'); auto mline = media.getItemClass<SdpMedia>('m');
this->media.emplace_back(); this->media.emplace_back();
auto &rtc_media = this->media.back(); auto &rtc_media = this->media.back();
rtc_media.type = mline.type;
rtc_media.mid = media.getStringItem('a', "mid"); rtc_media.mid = media.getStringItem('a', "mid");
rtc_media.proto = mline.proto; rtc_media.proto = mline.proto;
rtc_media.type = mline.type; rtc_media.type = mline.type;