We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73ce2b8 commit 713d86fCopy full SHA for 713d86f
webrtc/src/peer_connection/mod.rs
@@ -1696,7 +1696,10 @@ impl RTCPeerConnection {
1696
{
1697
let rtp_transceivers = self.internal.rtp_transceivers.lock().await;
1698
for t in &*rtp_transceivers {
1699
- if !t.stopped.load(Ordering::SeqCst) && t.kind == track.kind() {
+ if !t.stopped.load(Ordering::SeqCst)
1700
+ && t.kind == track.kind()
1701
+ && track.id() == t.sender().await.id
1702
+ {
1703
let sender = t.sender().await;
1704
if sender.track().await.is_none() {
1705
if let Err(err) = sender.replace_track(Some(track)).await {
0 commit comments