2
0
Эх сурвалжийг харах

Merge pull request #316 from stazio/fix_candidate_sdp

Fix typo in Candidate SDP parsing
Paul-Louis Ageneau 4 жил өмнө
parent
commit
acaed8ca57

+ 1 - 1
src/candidate.cpp

@@ -108,7 +108,7 @@ void Candidate::parse(string candidate) {
 	trim_begin(mTail);
 	trim_begin(mTail);
 	trim_end(mTail);
 	trim_end(mTail);
 
 
-	if (auto it = TypeMap.find(type); it != TypeMap.end())
+	if (auto it = TypeMap.find(mTypeString); it != TypeMap.end())
 		mType = it->second;
 		mType = it->second;
 	else
 	else
 		mType = Type::Unknown;
 		mType = Type::Unknown;