From 0bb593f8174430d14857d10e6abc0ea9e1c7f64a Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Tue, 14 Jul 2020 09:50:06 +0800 Subject: [PATCH] =?UTF-8?q?rtp=E6=8E=A8=E6=B5=81=E6=97=A0=E4=BA=BA?= =?UTF-8?q?=E8=A7=82=E7=9C=8B=E6=97=B6=EF=BC=8C=E8=87=AA=E5=8A=A8=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E7=AB=AF=E5=8F=A3=EF=BC=9A#410?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/RtpSelector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Rtp/RtpSelector.cpp b/src/Rtp/RtpSelector.cpp index fb790048..8f74e8ce 100644 --- a/src/Rtp/RtpSelector.cpp +++ b/src/Rtp/RtpSelector.cpp @@ -80,7 +80,9 @@ void RtpSelector::delProcess(const string &stream_id,const RtpProcess *ptr) { if (it->second->getProcess().get() != ptr) { return; } + auto process = it->second->getProcess(); _map_rtp_process.erase(it); + process->onDetach(); } void RtpSelector::onManager() {