优化推流器代码

This commit is contained in:
xiongziliang
2019-03-28 09:43:47 +08:00
parent f6b963f0f2
commit d208f69730
4 changed files with 23 additions and 29 deletions

View File

@@ -63,19 +63,7 @@ protected:
send(buffer);
}
private:
void onShutdown(const SockException &ex) {
_pPublishTimer.reset();
if(_onShutdown){
_onShutdown(ex);
}
_pRtmpReader.reset();
}
void onPublishResult(const SockException &ex) {
_pPublishTimer.reset();
if(_onPublished){
_onPublished(ex);
}
}
void onPublishResult(const SockException &ex);
template<typename FUN>
inline void addOnResultCB(const FUN &fun) {