From 51e5858dda6fb386024df0dce2bc38270f1bff02 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期五, 26 七月 2019 10:59:28 +0800 Subject: [PATCH] remove log --- apipassive.go | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/apipassive.go b/apipassive.go index 90b82a9..cfa027c 100644 --- a/apipassive.go +++ b/apipassive.go @@ -5,7 +5,10 @@ #include "libcffmpeg.h" */ import "C" -import "unsafe" +import ( + "fmt" + "unsafe" +) // FireRecorder fire recorder func (h *GoFFMPEG) FireRecorder(id int64) { @@ -29,9 +32,12 @@ // if p == nil { // return -1, "" // } - defer C.free(unsafe.Pointer(p)) + path := C.GoString(p) + C.free(unsafe.Pointer(p)) - return int(i), C.GoString(p) + fmt.Println("Go get info : ", path, " len: ", l) + + return int(i), path } // BuildDecoder build decoder -- Gitblit v1.8.0