Browse Source

Fixed missing call to updateTrackSsrcCache() for incoming tracks

Paul-Louis Ageneau 3 years ago
parent
commit
ef4a05a853
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/impl/peerconnection.cpp

+ 4 - 0
src/impl/peerconnection.cpp

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