mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-07 12:18:12 +08:00
优化推流器代码
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user