diff --git a/media/webrtc/signaling/src/peerconnection/TransceiverImpl.cpp b/media/webrtc/signaling/src/peerconnection/TransceiverImpl.cpp index 2596ecb7b92f..b354a58aac2d 100644 --- a/media/webrtc/signaling/src/peerconnection/TransceiverImpl.cpp +++ b/media/webrtc/signaling/src/peerconnection/TransceiverImpl.cpp @@ -939,11 +939,8 @@ void TransceiverImpl::UpdateConduitRtpExtmap( extmaps.emplace_back(extmap.extensionname, extmap.entry); }); - RefPtr conduit = - static_cast(mConduit.get()); - if (!extmaps.empty()) { - conduit->SetLocalRTPExtensions(aDirection, extmaps); + mConduit->SetLocalRTPExtensions(aDirection, extmaps); } }