Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Sep 7, 2024
1 parent e4c462e commit d4ca20e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PeerConnectionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,11 +770,11 @@ const Json::Value PeerConnectionManager::setAnswer(const std::string &peerid, co

std::unique_ptr<webrtc::SessionDescriptionInterface> PeerConnectionManager::getAnswer(const std::string & peerid, const std::string& sdpoffer, const std::string & videourl, const std::string & audiourl, const std::string & options, bool waitgatheringcompletion) {
std::unique_ptr<webrtc::SessionDescriptionInterface> answer;
webrtc::SessionDescriptionInterface *session_description(webrtc::CreateSessionDescription(webrtc::SdpType::kOffer, sdpoffer, NULL));
std::unique_ptr<webrtc::SessionDescriptionInterface> session_description(webrtc::CreateSessionDescription(webrtc::SdpType::kOffer, sdpoffer, NULL));
if (!session_description) {
RTC_LOG(LS_WARNING) << "Can't parse received session description message.";
} else {
answer = this->getAnswer(peerid, session_description, videourl, audiourl, options, waitgatheringcompletion);
answer = this->getAnswer(peerid, session_description.get(), videourl, audiourl, options, waitgatheringcompletion);
}
return answer;
}
Expand Down

0 comments on commit d4ca20e

Please sign in to comment.