Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
yngrtc authored Jun 4, 2023
1 parent 59fa7a0 commit a6b0c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webrtc/src/rtp_transceiver/rtp_receiver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ impl RTCRtpReceiver {
) -> Result<Arc<TrackRemote>> {
let mut tracks = self.internal.tracks.write().await;
for t in &mut *tracks {
if SmolStr::from(t.track.rid()) == rid {
if *t.track.rid() == rid {
t.track.set_kind(self.kind);
if let Some(codec) = params.codecs.first() {
t.track.set_codec(codec.clone());
Expand Down

0 comments on commit a6b0c0e

Please sign in to comment.