mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-21 21:40:55 +08:00
fix flow report hook player or pusher judge error
This commit is contained in:
@@ -17,7 +17,7 @@ SrtTransportImp::~SrtTransportImp() {
|
||||
GET_CONFIG(uint32_t, iFlowThreshold, General::kFlowThreshold);
|
||||
if (_total_bytes >= iFlowThreshold * 1024) {
|
||||
NoticeCenter::Instance().emitEvent(
|
||||
Broadcast::kBroadcastFlowReport, _media_info, _total_bytes, duration, false,
|
||||
Broadcast::kBroadcastFlowReport, _media_info, _total_bytes, duration, !_is_pusher,
|
||||
static_cast<SockInfo &>(*this));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user