修复当源析构时组播对象偶现析构不了的问题
This commit is contained in:
parent
c40aa6d031
commit
178c5660b7
|
|
@ -145,7 +145,7 @@ RtpMultiCaster::RtpMultiCaster(SocketHelper &helper, const string &local_ip, con
|
||||||
});
|
});
|
||||||
|
|
||||||
string strKey = StrPrinter << local_ip << " " << vhost << " " << app << " " << stream << endl;
|
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);
|
lock_guard<recursive_mutex> lck(g_mtx);
|
||||||
auto it = g_multi_caster_map.find(strKey);
|
auto it = g_multi_caster_map.find(strKey);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue