Browse Source

Merge pull request #234 from paullouisageneau/fix-track-answer

Fix regressions with answers after renegociation
Paul-Louis Ageneau 4 years ago
parent
commit
99e78b68a4
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/description.cpp
  2. 1 0
      src/peerconnection.cpp

+ 1 - 1
src/description.cpp

@@ -778,7 +778,7 @@ Description::Type Description::stringToType(const string &typeString) {
 	using TypeMap_t = std::unordered_map<string, Type>;
 	static const TypeMap_t TypeMap = {{"unspec", Type::Unspec},
 	                                  {"offer", Type::Offer},
-	                                  {"answer", Type::Pranswer},
+	                                  {"answer", Type::Answer},
 	                                  {"pranswer", Type::Pranswer},
 	                                  {"rollback", Type::Rollback}};
 	auto it = TypeMap.find(typeString);

+ 1 - 0
src/peerconnection.cpp

@@ -907,6 +907,7 @@ void PeerConnection::processLocalDescription(Description description) {
 					        }
 					        return;
 				        }
+				        lock.unlock(); // we are going to call incomingTrack()
 
 				        auto reciprocated = remoteMedia->reciprocate();
 #if !RTC_ENABLE_MEDIA