跟踪主线程

This commit is contained in:
xzl 2017-05-13 10:28:55 +08:00
parent cce92ae29f
commit c0477c897e

View File

@ -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;
}); });
}; };