From 0916a72db70f17c91a16a8492c2b7701cda9a86b Mon Sep 17 00:00:00 2001 From: xiongguangjie Date: Fri, 24 Jun 2022 16:28:16 +0800 Subject: [PATCH] fix flow report hook player or pusher judge error --- srt/SrtTransportImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srt/SrtTransportImp.cpp b/srt/SrtTransportImp.cpp index 210498c2..26024cab 100644 --- a/srt/SrtTransportImp.cpp +++ b/srt/SrtTransportImp.cpp @@ -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(*this)); } }