From bfded635a544a1ab5d252739f4be4f7f30b39b7f Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期五, 26 七月 2019 14:46:48 +0800 Subject: [PATCH] update ffmpeg --- apipassive.go | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/apipassive.go b/apipassive.go index 5f866f5..5ea32ea 100644 --- a/apipassive.go +++ b/apipassive.go @@ -27,22 +27,20 @@ } // GetInfoRecorder info -func (h *GoFFMPEG) GetInfoRecorder() (string, int, string) { +func (h *GoFFMPEG) GetInfoRecorder() (int, string) { var i C.int = -1 var l C.int - var sid *C.char - p := C.wrap_fn_info_recorder(h.ffmpeg, &sid, &i, &l) + + p := C.wrap_fn_info_recorder(h.ffmpeg, &i, &l) // if p == nil { // return -1, "" // } path := C.GoString(p) C.free(unsafe.Pointer(p)) - goid := C.GoString(sid) - C.free(unsafe.Pointer(sid)) // fmt.Println("Go get info : ", path, " len: ", l) - return goid, int(i), path + return int(i), path } // BuildDecoder build decoder -- Gitblit v1.8.0