Browse Source

Removed warning when parsing SDP from libnice

Paul-Louis Ageneau 5 years ago
parent
commit
b686502209
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/description.cpp

+ 4 - 1
src/description.cpp

@@ -68,6 +68,8 @@ Description::Description(const string &sdp, Type type, Role role)
 		finished = !std::getline(ss, line) && line.empty();
 		trim_end(line);
 
+		LOG_DEBUG << line;
+
 		// Media description line (aka m-line)
 		if (finished || match_prefix(line, "m=")) {
 			if (currentMedia) {
@@ -76,7 +78,8 @@ Description::Description(const string &sdp, Type type, Role role)
 						mData.mid = currentMedia->mid;
 					else
 						mMedia.emplace(currentMedia->mid, std::move(*currentMedia));
-				} else {
+
+				} else if (line.find(" ICE/SDP") != string::npos) {
 					PLOG_WARNING << "SDP \"m=\" line has no corresponding mid, ignoring";
 				}
 			}