Преглед на файлове

Fixed missing call to updateTrackSsrcCache() for incoming tracks

Paul-Louis Ageneau преди 3 години
родител
ревизия
ef4a05a853
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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));
 			    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);
 
 
 	{
 	{