mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复bug
This commit is contained in:
parent
33047ddc94
commit
6eb4d5916d
@ -348,21 +348,6 @@ void MediaSource::unregisted(){
|
|||||||
_strApp,
|
_strApp,
|
||||||
_strId,
|
_strId,
|
||||||
*this);
|
*this);
|
||||||
|
|
||||||
weak_ptr<MediaSource> weakPtr = shared_from_this();
|
|
||||||
EventPollerPool::Instance().getPoller()->async([weakPtr,this](){
|
|
||||||
auto strongPtr = weakPtr.lock();
|
|
||||||
if (!strongPtr) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
NoticeCenter::Instance().emitEvent(Broadcast::kBroadcastMediaChanged,
|
|
||||||
true,
|
|
||||||
_strSchema,
|
|
||||||
_strVhost,
|
|
||||||
_strApp,
|
|
||||||
_strId,
|
|
||||||
*this);
|
|
||||||
},false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user