Fixed spelling

This commit is contained in:
Paul-Louis Ageneau
2020-11-01 18:33:59 +01:00
parent 02105f5da3
commit bb73da2351
3 changed files with 11 additions and 11 deletions

View File

@ -182,7 +182,7 @@ private:
std::atomic<State> mState;
std::atomic<GatheringState> mGatheringState;
std::atomic<SignalingState> mSignalingState;
std::atomic<bool> mNegociationNeeded;
std::atomic<bool> mNegotiationNeeded;
synchronized_callback<std::shared_ptr<DataChannel>> mDataChannelCallback;
synchronized_callback<Description> mLocalDescriptionCallback;

View File

@ -45,7 +45,7 @@ PeerConnection::PeerConnection() : PeerConnection(Configuration()) {}
PeerConnection::PeerConnection(const Configuration &config)
: mConfig(config), mCertificate(make_certificate()), mProcessor(std::make_unique<Processor>()),
mState(State::New), mGatheringState(GatheringState::New),
mSignalingState(SignalingState::Stable), mNegociationNeeded(false) {
mSignalingState(SignalingState::Stable), mNegotiationNeeded(false) {
PLOG_VERBOSE << "Creating PeerConnection";
if (config.portRangeEnd && config.portRangeBegin > config.portRangeEnd)
@ -61,7 +61,7 @@ PeerConnection::~PeerConnection() {
void PeerConnection::close() {
PLOG_VERBOSE << "Closing PeerConnection";
mNegociationNeeded = false;
mNegotiationNeeded = false;
// Close data channels asynchronously
mProcessor->enqueue(std::bind(&PeerConnection::closeDataChannels, this));
@ -129,9 +129,9 @@ void PeerConnection::setLocalDescription(Description::Type type) {
type = Description::Type::Offer;
}
// Only a local offer resets the negociation needed flag
if (type == Description::Type::Offer && !mNegociationNeeded.exchange(false)) {
PLOG_DEBUG << "No negociation needed";
// Only a local offer resets the negotiation needed flag
if (type == Description::Type::Offer && !mNegotiationNeeded.exchange(false)) {
PLOG_DEBUG << "No negotiation needed";
return;
}
@ -320,10 +320,10 @@ shared_ptr<DataChannel> PeerConnection::addDataChannel(string label, string prot
if (transport->state() == SctpTransport::State::Connected)
channel->open(transport);
// Renegociation is needed iff the current local description does not have application
// Renegotiation is needed iff the current local description does not have application
std::lock_guard lock(mLocalDescriptionMutex);
if (!mLocalDescription || !mLocalDescription->hasApplication())
mNegociationNeeded = true;
mNegotiationNeeded = true;
return channel;
}
@ -373,8 +373,8 @@ std::shared_ptr<Track> PeerConnection::addTrack(Description::Media description)
auto track = std::make_shared<Track>(std::move(description));
mTracks.emplace(std::make_pair(track->mid(), track));
// Renegociation is needed for the new track
mNegociationNeeded = true;
// Renegotiation is needed for the new track
mNegotiationNeeded = true;
return track;
}

View File

@ -121,7 +121,7 @@ void test_track() {
if (!at2 || !at2->isOpen() || !t1->isOpen())
throw runtime_error("Track is not open");
// Test renegociation
// Test renegotiation
newTrackMid = "added";
t1 = pc1->addTrack(Description::Video(newTrackMid));