Skip to content

Commit

Permalink
Merge pull request #1 from tigrato/tigrato-patch-1
Browse files Browse the repository at this point in the history
fix cgo
  • Loading branch information
tigrato authored Nov 20, 2019
2 parents 7ab7a0f + 32fb4f7 commit 1e47ba2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/howtouse/howtouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"flag"
"github.com/jkl1337/go-mediainfo"
"github.com/tigrato/go-mediainfo"
"log"
"os"
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion cmd/miget/miget.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"flag"
"github.com/jkl1337/go-mediainfo"
"github.com/tigrato/go-mediainfo"
"log"
"os"
"fmt"
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/tigrato/go-mediainfo

go 1.13
4 changes: 2 additions & 2 deletions mediainfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1e47ba2

Please sign in to comment.