Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions erizo/src/erizo/MediaStream.cpp
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ bool MediaStream::setRemoteSdp(std::shared_ptr<SdpInfo> sdp) {
if (!sending_) {
return true;
}
remote_sdp_ = sdp;
remote_sdp_ = std::make_shared<SdpInfo>(*sdp.get());
if (remote_sdp_->videoBandwidth != 0) {
ELOG_DEBUG("%s message: Setting remote BW, maxVideoBW: %u", toLog(), remote_sdp_->videoBandwidth);
this->rtcp_processor_->setMaxVideoBW(remote_sdp_->videoBandwidth*1000);
@@ -170,7 +170,6 @@ bool MediaStream::setRemoteSdp(std::shared_ptr<SdpInfo> sdp) {
return true;
}


bundle_ = remote_sdp_->isBundle;
auto video_ssrc_list_it = remote_sdp_->video_ssrc_map.find(getLabel());
if (video_ssrc_list_it != remote_sdp_->video_ssrc_map.end()) {
4 changes: 2 additions & 2 deletions erizoAPI/WebRtcConnection.cc
Original file line number Diff line number Diff line change
@@ -307,7 +307,7 @@ NAN_METHOD(WebRtcConnection::setRemoteDescription) {

ConnectionDescription* param =
Nan::ObjectWrap::Unwrap<ConnectionDescription>(Nan::To<v8::Object>(info[0]).ToLocalChecked());
auto sdp = std::shared_ptr<erizo::SdpInfo>(param->me);
auto sdp = std::make_shared<erizo::SdpInfo>(*param->me.get());

v8::String::Utf8Value stream_id_param(Nan::To<v8::String>(info[1]).ToLocalChecked());
std::string stream_id = std::string(*stream_id_param);
@@ -323,7 +323,7 @@ NAN_METHOD(WebRtcConnection::getLocalDescription) {
return;
}

std::shared_ptr<erizo::SdpInfo> sdp_info = me->getLocalSdpInfo();
std::shared_ptr<erizo::SdpInfo> sdp_info = std::make_shared<erizo::SdpInfo>(*me->getLocalSdpInfo().get());

v8::Local<v8::Object> instance = ConnectionDescription::NewInstance();
ConnectionDescription* description = ObjectWrap::Unwrap<ConnectionDescription>(instance);

0 comments on commit 93ca6e6

Please sign in to comment.