From 87c35223743c62302674a4dfa5d8b5f6a6bd21e9 Mon Sep 17 00:00:00 2001 From: lijun Date: Sat, 18 Jan 2025 15:13:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/tool.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/service/tool.go b/service/tool.go index ccf10ca..cc7e997 100644 --- a/service/tool.go +++ b/service/tool.go @@ -266,6 +266,11 @@ func getVideoFrame(device proto.DeviceInfo) { log.Printf("设备:%d 错误: 无法设置当前帧,err:%s \n", device.ID, err3.Error()) } z++ + //关闭帧 + err4 := frame.Close() + if err4 != nil { + log.Printf("设备:%d 错误: 无法关闭帧,err:%s \n", device.ID, err4.Error()) + } } //关闭帧 err4 := frame.Close()