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