修正帧数统计错误,流量统计错误的问题
确认显示帧数策略有效
This commit is contained in:
@@ -244,7 +244,8 @@ public class HikVideoSource : BaseVideoSource
|
||||
{
|
||||
try
|
||||
{
|
||||
// [优化] 维持心跳,防止被哨兵误杀
|
||||
// 【关键位置】:在此处调用,统计网络层收到的每一字节数据
|
||||
// 因为 dwBufSize > 0,MarkFrameReceived 内部只会累加码流,不会增加 FPS 计数
|
||||
MarkFrameReceived(dwBufSize);
|
||||
|
||||
if (_realPlayHandle == -1) return;
|
||||
@@ -301,6 +302,9 @@ public class HikVideoSource : BaseVideoSource
|
||||
// 如果没人要,直接丢弃,不进行 Mat 转换,节省 CPU
|
||||
if (!decision.IsCaptured) return;
|
||||
|
||||
// [优化] 维持心跳,防止被哨兵误杀
|
||||
MarkFrameReceived(0);
|
||||
|
||||
int width = pFrameInfo.nWidth;
|
||||
int height = pFrameInfo.nHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user