mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-01 23:57:37 +08:00
修复bug
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user