跟踪主线程
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