Преглед изворни кода

Fix typo in Candidate SDP parsing

Staz M пре 4 година
родитељ
комит
5728f813d1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/candidate.cpp

+ 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;