| | |
| | | var l C.int |
| | | |
| | | p := C.wrap_fn_info_recorder(h.ffmpeg, &i, &l) |
| | | if p == nil { |
| | | return -1, "" |
| | | } |
| | | C.free(unsafe.Pointer(p)) |
| | | // if p == nil { |
| | | // return -1, "" |
| | | // } |
| | | defer C.free(unsafe.Pointer(p)) |
| | | |
| | | return int(i), C.GoString(p) |
| | | } |
| | |
| | | int i; |
| | | std::string p; |
| | | s->GetInfoRecorder(i, p); |
| | | if(p.empty()){ |
| | | return NULL; |
| | | } |
| | | |
| | | printf("cffmpeg get info : index : %d, file : %s\n", i, p.c_str()); |
| | | |
| | | *index = i; |
| | | *length = p.length(); |
| | | char *path = (char*)malloc(*length + 1); |
| | |
| | | index = info.file_frame_index; |
| | | path = info.file_path; |
| | | list_rec_.pop_front(); |
| | | logIt("go get info index: %d, file: %s\n", index, path.c_str()); |
| | | } |
| | | |
| | | ////////decoder |