From f93ee1a42e8c47e472332287b7350b66a6b0fa11 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期五, 24 七月 2020 18:28:57 +0800 Subject: [PATCH] 保存触发id之后的视频作为触发视频 --- gostream.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/gostream.go b/gostream.go index 7ae6636..a0af494 100644 --- a/gostream.go +++ b/gostream.go @@ -8,6 +8,11 @@ import "unsafe" +// CloseStream close stream +func (h *GoFFMPEG) CloseStream() { + C.wrap_fn_close_stream(unsafe.Pointer(libcffmpeg), h.ffmpeg) +} + //GetAVPacket get AVPacket func (h *GoFFMPEG) GetAVPacket() ([]byte, int, int) { var key C.int -- Gitblit v1.8.0