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

Fixed missing call to updateTrackSsrcCache() for incoming tracks

Paul-Louis Ageneau 3 жил өмнө
parent
commit
ef4a05a853

+ 4 - 0
src/impl/peerconnection.cpp

@@ -887,6 +887,9 @@ void PeerConnection::processLocalDescription(Description description) {
 			        },
 			        },
 			    },
 			    },
 			    remote->media(i));
 			    remote->media(i));
+
+		// We need to update the SSRC cache for newly-created incoming tracks
+		updateTrackSsrcCache(*remote);
 	}
 	}
 
 
 	if (description.type() == Description::Type::Offer) {
 	if (description.type() == Description::Type::Offer) {
@@ -987,6 +990,7 @@ void PeerConnection::processLocalCandidate(Candidate candidate) {
 }
 }
 
 
 void PeerConnection::processRemoteDescription(Description description) {
 void PeerConnection::processRemoteDescription(Description description) {
+	// Update the SSRC cache for existing tracks
 	updateTrackSsrcCache(description);
 	updateTrackSsrcCache(description);
 
 
 	{
 	{