大幅优化性能

This commit is contained in:
xiongziliang
2018-09-14 18:04:41 +08:00
parent 237a7d71f3
commit 492d083f5b
12 changed files with 60 additions and 35 deletions

View File

@@ -174,7 +174,7 @@ void RtspPlayer::onConnect(const SockException &err){
strongSelf->onPlayResult_l(SockException(Err_timeout,"play rtsp timeout"));
strongSelf->teardown();
return false;
}));
},getExecutor()));
}
void RtspPlayer::onRecv(const Buffer::Ptr& pBuf) {
@@ -414,7 +414,7 @@ void RtspPlayer::handleResSETUP(const Parser &parser, unsigned int uiTrackIndex)
return false;
}
return strongSelf->sendOptions();
}));
},getExecutor()));
pause(false);
}
@@ -808,7 +808,7 @@ void RtspPlayer::onPlayResult_l(const SockException &ex) {
return false;
}
return true;
}));
},getExecutor()));
}
onPlayResult(ex);
}