mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 22:55:52 +08:00
跟踪主线程
This commit is contained in:
parent
cce92ae29f
commit
c0477c897e
@ -22,7 +22,7 @@ namespace Player {
|
|||||||
PlayerBase::Ptr PlayerBase::createPlayer(const char* strUrl) {
|
PlayerBase::Ptr PlayerBase::createPlayer(const char* strUrl) {
|
||||||
string prefix = FindField(strUrl, NULL, "://");
|
string prefix = FindField(strUrl, NULL, "://");
|
||||||
auto onDestory = [](PlayerBase *ptr){
|
auto onDestory = [](PlayerBase *ptr){
|
||||||
EventPoller::Instance().async([ptr](){
|
ASYNC_TRACE([ptr](){
|
||||||
delete ptr;
|
delete ptr;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user