增加 SmartFrame 强制收回逻辑

This commit is contained in:
2026-01-17 15:41:55 +08:00
parent e06c60968d
commit 2992306056
7 changed files with 205 additions and 48 deletions

View File

@@ -22,6 +22,11 @@ public static class GlobalPipelineRouter
/// </summary>
public static void Enqueue(long deviceId, SmartFrame frame, FrameDecision decision)
{
// Optimized: [原因] 撤回冗余的 AddRef。实测发现 ProcessingPipeline.TrySubmit
// 内部已包含 AddRef 逻辑,此处若再加会导致引用计数无法归零,进而撑爆帧池导致卡死。
frame.AddRef();
if (_currentProcessor != null)
{
// 场景 A: 有处理器 (如缩放服务) -> 改道进入处理器