Quellcode durchsuchen

Clear all ssrc attributes in reciprocated sdp, as they are individual.

industriousonesoft vor 4 Jahren
Ursprung
Commit
976caf0cb7
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      src/description.cpp

+ 3 - 3
src/description.cpp

@@ -690,9 +690,9 @@ Description::Media Description::Media::reciprocate() const {
 		break;
 	}
 
-	// Clear all ssrc attributes as them are individual
-	auto it = mAttributes.begin();
-	while (it != mAttributes.end()) {
+	// Clear all ssrc attributes as they are individual
+	auto it = reciprocated.mAttributes.begin();
+	while (it != reciprocated.mAttributes.end()) {
 		if (match_prefix(*it, "ssrc:"))
 			it = reciprocated.mAttributes.erase(it);
 		else