| | |
| | | } |
| | | |
| | | // 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 |