Example #1
0
// SetOption sets a MediaInfo handle option
func (mi *MediaInfo) SetOption(option, value string) string {
	coption, cvalue := C.CString(option), C.CString(value)
	defer C.free(unsafe.Pointer(coption))
	defer C.free(unsafe.Pointer(cvalue))

	return C.GoString(C.g_MediaInfo_Option(mi.cptr, coption, cvalue))
}
Example #2
0
// Option gets a MediaInfo handle option
func (mi *MediaInfo) Option(option string) string {
	coption := C.CString(option)
	defer C.free(unsafe.Pointer(coption))

	return C.GoString(C.g_MediaInfo_Option(mi.cptr, coption, emptyCString()))
}