From 5193c1c29bf42323a10b7b107fab8b11657db3b0 Mon Sep 17 00:00:00 2001 From: Dan O'Bryan Date: Mon, 13 May 2019 00:04:42 +0000 Subject: [PATCH] update cgo binding to use C.char --- mediainfo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediainfo.go b/mediainfo.go index b706756..d20bbab 100644 --- a/mediainfo.go +++ b/mediainfo.go @@ -70,8 +70,8 @@ func toCStream(s StreamKind) C.MediaInfo_stream_C { var cEmptyString int -func emptyCString() *_Ctype_char { - return (*_Ctype_char)(unsafe.Pointer(&cEmptyString)) +func emptyCString() *C.char { + return (*C.char)(unsafe.Pointer(&cEmptyString)) } // ErrOpenFailed is returned by Open when mediainfo cannot open the file.