修复当源析构时组播对象偶现析构不了的问题

This commit is contained in:
zwcarl 2024-06-03 19:46:06 +08:00
parent c40aa6d031
commit 178c5660b7
No known key found for this signature in database
GPG Key ID: 636ED03F0D9BA31D
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ RtpMultiCaster::RtpMultiCaster(SocketHelper &helper, const string &local_ip, con
});
string strKey = StrPrinter << local_ip << " " << vhost << " " << app << " " << stream << endl;
_rtp_reader->setDetachCB([this]() {
_rtp_reader->setDetachCB([this, strKey]() {
{
lock_guard<recursive_mutex> lck(g_mtx);
auto it = g_multi_caster_map.find(strKey);