From ad68bb4ff0c8163c4d335451ecab4207e152a3b5 Mon Sep 17 00:00:00 2001 From: Iurii Pelykh Date: Fri, 25 Oct 2024 19:26:19 +0200 Subject: [PATCH] fix crash in impl::PeerConnection::negotiationNeeded() --- src/impl/peerconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/impl/peerconnection.cpp b/src/impl/peerconnection.cpp index 58e569e6e..ec10ca725 100644 --- a/src/impl/peerconnection.cpp +++ b/src/impl/peerconnection.cpp @@ -1222,7 +1222,7 @@ bool PeerConnection::negotiationNeeded() const { if (!media->isRemoved()) if (auto it = mTracks.find(media->mid()); it != mTracks.end()) if (auto track = it->second.lock(); !track || track->isClosed()) { - PLOG_DEBUG << "Negotiation needed to remove track, mid=" << track->mid(); + PLOG_DEBUG << "Negotiation needed to remove track, mid=" << media->mid(); return true; } }