change module name and use new golang version

This commit is contained in:
RSWilli
2023-08-11 13:28:57 +02:00
parent d245327964
commit d0fc9e926a
114 changed files with 395 additions and 420 deletions

View File

@@ -2,12 +2,11 @@
Go bindings for the GStreamer C libraries Go bindings for the GStreamer C libraries
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-rounded)](https://pkg.go.dev/github.com/tinyzimmer/go-gst) [![godoc reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/go-gst/go-gst)
[![godoc reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/tinyzimmer/go-gst) [![GoReportCard](https://goreportcard.com/badge/github.com/nanomsg/mangos)](https://goreportcard.com/report/github.com/go-gst/go-gst)
[![GoReportCard](https://goreportcard.com/badge/github.com/nanomsg/mangos)](https://goreportcard.com/report/github.com/tinyzimmer/go-gst) ![](https://github.com/go-gst/go-gst/workflows/Tests/badge.svg)
![](https://github.com/tinyzimmer/go-gst/workflows/Tests/badge.svg)
See the [godoc.org](https://godoc.org/github.com/tinyzimmer/go-gst) or [pkg.go.dev](https://pkg.go.dev/github.com/tinyzimmer/go-gst) references for documentation and examples. See the [godoc.org](https://godoc.org/github.com/go-gst/go-gst) or [pkg.go.dev](https://pkg.go.dev/github.com/go-gst/go-gst) references for documentation and examples.
As the latter requires published tags, see godoc.org for the latest documentation of master at any point in time. As the latter requires published tags, see godoc.org for the latest documentation of master at any point in time.
**This library has not been thoroughly tested and as such is not recommended for mission critical applications yet. If you'd like to try it out and encounter any bugs, feel free to open an Issue or PR. For more information see the [Contributing](#contributing) section.** **This library has not been thoroughly tested and as such is not recommended for mission critical applications yet. If you'd like to try it out and encounter any bugs, feel free to open an Issue or PR. For more information see the [Contributing](#contributing) section.**
@@ -40,7 +39,7 @@ PS> $env:PKG_CONFIG_PATH='C:\gstreamer\1.0\mingw_x86_64\lib\pkgconfig'
PS> go build . PS> go build .
``` ```
For more information, take a look at [this comment](https://github.com/tinyzimmer/go-gst/issues/3#issuecomment-760648278) with a good run down of the process from compilation to execution. For more information, take a look at [this comment](https://github.com/go-gst/go-gst/issues/3#issuecomment-760648278) with a good run down of the process from compilation to execution.
## Quickstart ## Quickstart
@@ -56,8 +55,8 @@ import (
"os" "os"
"strings" "strings"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
func main() { func main() {

View File

@@ -136,9 +136,9 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
{{- if (.Config.Element.Subclass | extendsFromBase) }} {{- if (.Config.Element.Subclass | extendsFromBase) }}
"github.com/tinyzimmer/go-gst/gst/base" "github.com/go-gst/go-gst/gst/base"
{{- end }} {{- end }}
) )

View File

@@ -8,9 +8,9 @@ import (
"os/signal" "os/signal"
"time" "time"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/app" "github.com/go-gst/go-gst/gst/app"
) )
func createPipeline() (*gst.Pipeline, error) { func createPipeline() (*gst.Pipeline, error) {

View File

@@ -7,11 +7,11 @@ import (
"image/color" "image/color"
"time" "time"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/app" "github.com/go-gst/go-gst/gst/app"
"github.com/tinyzimmer/go-gst/gst/video" "github.com/go-gst/go-gst/gst/video"
) )
const width = 320 const width = 320

View File

@@ -2,9 +2,9 @@ package main
import ( import (
"fmt" "fmt"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"os" "os"
) )

View File

@@ -3,7 +3,7 @@ package examples
import ( import (
"fmt" "fmt"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Run is used to wrap the given function in a main loop and print any error // Run is used to wrap the given function in a main loop and print any error

View File

@@ -6,9 +6,9 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// ExampleCustomEvent demonstrates a custom event structue. Currerntly nested structs // ExampleCustomEvent demonstrates a custom event structue. Currerntly nested structs

View File

@@ -38,9 +38,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
var srcFile string var srcFile string

View File

@@ -15,8 +15,8 @@ import (
"os" "os"
"time" "time"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/pbutils" "github.com/go-gst/go-gst/gst/pbutils"
) )
func main() { func main() {

View File

@@ -24,9 +24,9 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
func runPipeline(loop *glib.MainLoop) error { func runPipeline(loop *glib.MainLoop) error {

View File

@@ -13,11 +13,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/app" "github.com/go-gst/go-gst/gst/app"
"github.com/tinyzimmer/go-gst/gst/video" "github.com/go-gst/go-gst/gst/video"
) )
var srcFile string var srcFile string

View File

@@ -9,9 +9,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
func runPipeline(mainLoop *glib.MainLoop) error { func runPipeline(mainLoop *glib.MainLoop) error {

View File

@@ -15,9 +15,9 @@ import (
"math" "math"
"time" "time"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
func padProbes(mainLoop *glib.MainLoop) error { func padProbes(mainLoop *glib.MainLoop) error {

View File

@@ -16,9 +16,9 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
var srcURI string var srcURI string

View File

@@ -1,12 +1,10 @@
//go:generate gst-plugin-gen
//
// +plugin:Name=boilerplate // +plugin:Name=boilerplate
// +plugin:Description=My plugin written in go // +plugin:Description=My plugin written in go
// +plugin:Version=v0.0.1 // +plugin:Version=v0.0.1
// +plugin:License=gst.LicenseLGPL // +plugin:License=gst.LicenseLGPL
// +plugin:Source=go-gst // +plugin:Source=go-gst
// +plugin:Package=examples // +plugin:Package=examples
// +plugin:Origin=https://github.com/tinyzimmer/go-gst // +plugin:Origin=https://github.com/go-gst/go-gst
// +plugin:ReleaseDate=2021-01-18 // +plugin:ReleaseDate=2021-01-18
// //
// +element:Name=myelement // +element:Name=myelement
@@ -14,9 +12,10 @@
// +element:Impl=myelement // +element:Impl=myelement
// +element:Subclass=gst.ExtendsElement // +element:Subclass=gst.ExtendsElement
// //
//go:generate gst-plugin-gen
package main package main
import "github.com/tinyzimmer/go-glib/glib" import "github.com/go-gst/go-glib/glib"
func main() {} func main() {}

View File

@@ -1,12 +1,10 @@
//go:generate gst-plugin-gen
//
// +plugin:Name=gobin // +plugin:Name=gobin
// +plugin:Description=A bin element written in go // +plugin:Description=A bin element written in go
// +plugin:Version=v0.0.1 // +plugin:Version=v0.0.1
// +plugin:License=gst.LicenseLGPL // +plugin:License=gst.LicenseLGPL
// +plugin:Source=go-gst // +plugin:Source=go-gst
// +plugin:Package=examples // +plugin:Package=examples
// +plugin:Origin=https://github.com/tinyzimmer/go-gst // +plugin:Origin=https://github.com/go-gst/go-gst
// +plugin:ReleaseDate=2021-01-18 // +plugin:ReleaseDate=2021-01-18
// //
// +element:Name=gobin // +element:Name=gobin
@@ -15,9 +13,10 @@
// +element:Subclass=gst.ExtendsBin // +element:Subclass=gst.ExtendsBin
// +element:Interfaces=gst.InterfaceChildProxy // +element:Interfaces=gst.InterfaceChildProxy
// //
//go:generate gst-plugin-gen
package main package main
import "github.com/tinyzimmer/go-glib/glib" import "github.com/go-gst/go-glib/glib"
func main() {} func main() {}

View File

@@ -13,16 +13,13 @@
// $ go generate // $ go generate
// $ go build -o libgstgofilesink.so -buildmode c-shared . // $ go build -o libgstgofilesink.so -buildmode c-shared .
// //
//
//go:generate gst-plugin-gen
//
// +plugin:Name=gofilesink // +plugin:Name=gofilesink
// +plugin:Description=File plugins written in go // +plugin:Description=File plugins written in go
// +plugin:Version=v0.0.1 // +plugin:Version=v0.0.1
// +plugin:License=gst.LicenseLGPL // +plugin:License=gst.LicenseLGPL
// +plugin:Source=go-gst // +plugin:Source=go-gst
// +plugin:Package=examples // +plugin:Package=examples
// +plugin:Origin=https://github.com/tinyzimmer/go-gst // +plugin:Origin=https://github.com/go-gst/go-gst
// +plugin:ReleaseDate=2021-01-04 // +plugin:ReleaseDate=2021-01-04
// //
// +element:Name=gofilesink // +element:Name=gofilesink
@@ -31,6 +28,7 @@
// +element:Subclass=base.ExtendsBaseSink // +element:Subclass=base.ExtendsBaseSink
// +element:Interfaces=gst.InterfaceURIHandler // +element:Interfaces=gst.InterfaceURIHandler
// //
//go:generate gst-plugin-gen
package main package main
import ( import (
@@ -40,9 +38,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/base" "github.com/go-gst/go-gst/gst/base"
) )
// main is left unimplemented since these files are compiled to c-shared. // main is left unimplemented since these files are compiled to c-shared.

View File

@@ -13,16 +13,13 @@
// $ go generate // $ go generate
// $ go build -o libgstgofilesrc.so -buildmode c-shared . // $ go build -o libgstgofilesrc.so -buildmode c-shared .
// //
//
//go:generate gst-plugin-gen
//
// +plugin:Name=gofilesrc // +plugin:Name=gofilesrc
// +plugin:Description=File plugins written in go // +plugin:Description=File plugins written in go
// +plugin:Version=v0.0.1 // +plugin:Version=v0.0.1
// +plugin:License=gst.LicenseLGPL // +plugin:License=gst.LicenseLGPL
// +plugin:Source=go-gst // +plugin:Source=go-gst
// +plugin:Package=examples // +plugin:Package=examples
// +plugin:Origin=https://github.com/tinyzimmer/go-gst // +plugin:Origin=https://github.com/go-gst/go-gst
// +plugin:ReleaseDate=2021-01-04 // +plugin:ReleaseDate=2021-01-04
// //
// +element:Name=gofilesrc // +element:Name=gofilesrc
@@ -31,6 +28,7 @@
// +element:Subclass=base.ExtendsBaseSrc // +element:Subclass=base.ExtendsBaseSrc
// +element:Interfaces=gst.InterfaceURIHandler // +element:Interfaces=gst.InterfaceURIHandler
// //
//go:generate gst-plugin-gen
package main package main
import ( import (
@@ -40,9 +38,9 @@ import (
"os" "os"
"strings" "strings"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/base" "github.com/go-gst/go-gst/gst/base"
) )
// main is left unimplemented since these files are compiled to c-shared. // main is left unimplemented since these files are compiled to c-shared.

View File

@@ -8,10 +8,10 @@ import (
"net/http" "net/http"
"os" "os"
"github.com/go-gst/go-glib/glib"
"github.com/go-gst/go-gst/gst"
minio "github.com/minio/minio-go/v7" minio "github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials" "github.com/minio/minio-go/v7/pkg/credentials"
"github.com/tinyzimmer/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst"
) )
const ( const (

View File

@@ -1,9 +1,9 @@
module github.com/tinyzimmer/go-gst/examples/plugins/minio module github.com/go-gst/go-gst/examples/plugins/minio
go 1.15 go 1.15
require ( require (
github.com/minio/minio-go/v7 v7.0.7 github.com/minio/minio-go/v7 v7.0.7
github.com/tinyzimmer/go-glib v0.0.19 github.com/go-gst/go-glib v0.0.19
github.com/tinyzimmer/go-gst v0.2.12 github.com/go-gst/go-gst v0.2.12
) )

View File

@@ -56,22 +56,22 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/tinyzimmer/go-glib v0.0.7 h1:09SIbhaL+E+5U/4qbZXiM7f6HEDvcxOBuEiSCkT9FNw= github.com/go-gst/go-glib v0.0.7 h1:09SIbhaL+E+5U/4qbZXiM7f6HEDvcxOBuEiSCkT9FNw=
github.com/tinyzimmer/go-glib v0.0.7/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= github.com/go-gst/go-glib v0.0.7/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4=
github.com/tinyzimmer/go-glib v0.0.11 h1:+X15JtyglmBhiLu5KXHWxcxhypyc/CEqW+SIFmjZ110= github.com/go-gst/go-glib v0.0.11 h1:+X15JtyglmBhiLu5KXHWxcxhypyc/CEqW+SIFmjZ110=
github.com/tinyzimmer/go-glib v0.0.11/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= github.com/go-gst/go-glib v0.0.11/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4=
github.com/tinyzimmer/go-glib v0.0.18 h1:zSlJK5NDcquHK4FFQ2cF6tRavo2Y+6jc3Qowj1sN+oQ= github.com/go-gst/go-glib v0.0.18 h1:zSlJK5NDcquHK4FFQ2cF6tRavo2Y+6jc3Qowj1sN+oQ=
github.com/tinyzimmer/go-glib v0.0.18/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= github.com/go-gst/go-glib v0.0.18/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4=
github.com/tinyzimmer/go-gst v0.2.2 h1:aTIHCj1bu7ZT4i4cxi246puWI2QOCR5yQ2Uw/SicOgM= github.com/go-gst/go-gst v0.2.2 h1:aTIHCj1bu7ZT4i4cxi246puWI2QOCR5yQ2Uw/SicOgM=
github.com/tinyzimmer/go-gst v0.2.2/go.mod h1:HYNtv9Qs2jxNAkTF9VJmC+CKLaWKQkZY7hJHbxfLfFM= github.com/go-gst/go-gst v0.2.2/go.mod h1:HYNtv9Qs2jxNAkTF9VJmC+CKLaWKQkZY7hJHbxfLfFM=
github.com/tinyzimmer/go-gst v0.2.3 h1:36NX7DqkUq7ehq+81Dmro8r9VEew9ZZ4K/Ic8oWpHck= github.com/go-gst/go-gst v0.2.3 h1:36NX7DqkUq7ehq+81Dmro8r9VEew9ZZ4K/Ic8oWpHck=
github.com/tinyzimmer/go-gst v0.2.3/go.mod h1:atM89iP55Hwgc+zoCVWT15qgThdxQ7WZJ5sD/uANDRI= github.com/go-gst/go-gst v0.2.3/go.mod h1:atM89iP55Hwgc+zoCVWT15qgThdxQ7WZJ5sD/uANDRI=
github.com/tinyzimmer/go-gst v0.2.4 h1:uDGTzObBmIhyukqjCE9Jw0/EmmNU47Ztd5lBrtXTmWU= github.com/go-gst/go-gst v0.2.4 h1:uDGTzObBmIhyukqjCE9Jw0/EmmNU47Ztd5lBrtXTmWU=
github.com/tinyzimmer/go-gst v0.2.4/go.mod h1:aPV2CtdfNrtASAzj+DzrAISJr1Czfy25ihLJIh7f/tk= github.com/go-gst/go-gst v0.2.4/go.mod h1:aPV2CtdfNrtASAzj+DzrAISJr1Czfy25ihLJIh7f/tk=
github.com/tinyzimmer/go-gst v0.2.8 h1:l0O9IjxncP7TMeeDFfYeQjrmsDv4STE0j8gVU1N8J74= github.com/go-gst/go-gst v0.2.8 h1:l0O9IjxncP7TMeeDFfYeQjrmsDv4STE0j8gVU1N8J74=
github.com/tinyzimmer/go-gst v0.2.8/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto= github.com/go-gst/go-gst v0.2.8/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto=
github.com/tinyzimmer/go-gst v0.2.11 h1:Nfaz7k0L2stRrSGhdGyZbfbbCUMU6/zC0UBi8Ftt8S0= github.com/go-gst/go-gst v0.2.11 h1:Nfaz7k0L2stRrSGhdGyZbfbbCUMU6/zC0UBi8Ftt8S0=
github.com/tinyzimmer/go-gst v0.2.11/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto= github.com/go-gst/go-gst v0.2.11/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=

View File

@@ -7,9 +7,9 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/base" "github.com/go-gst/go-gst/gst/base"
) )
var sinkCAT = gst.NewDebugCategory( var sinkCAT = gst.NewDebugCategory(

View File

@@ -10,9 +10,9 @@ import (
minio "github.com/minio/minio-go/v7" minio "github.com/minio/minio-go/v7"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/base" "github.com/go-gst/go-gst/gst/base"
) )
var srcCAT = gst.NewDebugCategory( var srcCAT = gst.NewDebugCategory(

View File

@@ -5,11 +5,9 @@
// By default this plugin will use the credentials set in the environment at MINIO_ACCESS_KEY_ID // By default this plugin will use the credentials set in the environment at MINIO_ACCESS_KEY_ID
// and MINIO_SECRET_ACCESS_KEY however these can also be set on the element directly. // and MINIO_SECRET_ACCESS_KEY however these can also be set on the element directly.
// //
//
// In order to build the plugin for use by GStreamer, you can do the following: // In order to build the plugin for use by GStreamer, you can do the following:
// //
// $ go build -o libgstminio.so -buildmode c-shared . // $ go build -o libgstminio.so -buildmode c-shared .
//
package main package main
import "C" import "C"
@@ -17,8 +15,8 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/base" "github.com/go-gst/go-gst/gst/base"
) )
// The metadata for this plugin // The metadata for this plugin
@@ -31,7 +29,7 @@ var pluginMeta = &gst.PluginMetadata{
License: gst.LicenseLGPL, License: gst.LicenseLGPL,
Source: "gst-pipeline-operator", Source: "gst-pipeline-operator",
Package: "plugins", Package: "plugins",
Origin: "https://github.com/tinyzimmer/gst-pipeline-operator", Origin: "https://github.com/go-gst/gst-pipeline-operator",
ReleaseDate: "2021-01-12", ReleaseDate: "2021-01-12",
// The init function is called to register elements provided by the plugin. // The init function is called to register elements provided by the plugin.
Init: func(plugin *gst.Plugin) bool { Init: func(plugin *gst.Plugin) bool {

View File

@@ -3,7 +3,7 @@ package main
import ( import (
"math" "math"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Even though there is overlap in properties, they have to be declared twice. // Even though there is overlap in properties, they have to be declared twice.

View File

@@ -1,10 +1,10 @@
module github.com/tinyzimmer/go-gst/examples/plugins/websocketsrc module github.com/go-gst/go-gst/examples/plugins/websocketsrc
go 1.15 go 1.15
require ( require (
github.com/minio/minio-go/v7 v7.0.7 github.com/minio/minio-go/v7 v7.0.7
github.com/tinyzimmer/go-glib v0.0.18 github.com/go-gst/go-glib v0.0.18
github.com/tinyzimmer/go-gst v0.2.8 github.com/go-gst/go-gst v0.2.8
golang.org/x/net v0.0.0-20200707034311-ab3426394381 golang.org/x/net v0.0.0-20200707034311-ab3426394381
) )

View File

@@ -37,18 +37,18 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/tinyzimmer/go-glib v0.0.7 h1:09SIbhaL+E+5U/4qbZXiM7f6HEDvcxOBuEiSCkT9FNw= github.com/go-gst/go-glib v0.0.7 h1:09SIbhaL+E+5U/4qbZXiM7f6HEDvcxOBuEiSCkT9FNw=
github.com/tinyzimmer/go-glib v0.0.7/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= github.com/go-gst/go-glib v0.0.7/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4=
github.com/tinyzimmer/go-glib v0.0.11 h1:+X15JtyglmBhiLu5KXHWxcxhypyc/CEqW+SIFmjZ110= github.com/go-gst/go-glib v0.0.11 h1:+X15JtyglmBhiLu5KXHWxcxhypyc/CEqW+SIFmjZ110=
github.com/tinyzimmer/go-glib v0.0.11/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= github.com/go-gst/go-glib v0.0.11/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4=
github.com/tinyzimmer/go-glib v0.0.18 h1:zSlJK5NDcquHK4FFQ2cF6tRavo2Y+6jc3Qowj1sN+oQ= github.com/go-gst/go-glib v0.0.18 h1:zSlJK5NDcquHK4FFQ2cF6tRavo2Y+6jc3Qowj1sN+oQ=
github.com/tinyzimmer/go-glib v0.0.18/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= github.com/go-gst/go-glib v0.0.18/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4=
github.com/tinyzimmer/go-gst v0.2.3 h1:36NX7DqkUq7ehq+81Dmro8r9VEew9ZZ4K/Ic8oWpHck= github.com/go-gst/go-gst v0.2.3 h1:36NX7DqkUq7ehq+81Dmro8r9VEew9ZZ4K/Ic8oWpHck=
github.com/tinyzimmer/go-gst v0.2.3/go.mod h1:atM89iP55Hwgc+zoCVWT15qgThdxQ7WZJ5sD/uANDRI= github.com/go-gst/go-gst v0.2.3/go.mod h1:atM89iP55Hwgc+zoCVWT15qgThdxQ7WZJ5sD/uANDRI=
github.com/tinyzimmer/go-gst v0.2.4 h1:uDGTzObBmIhyukqjCE9Jw0/EmmNU47Ztd5lBrtXTmWU= github.com/go-gst/go-gst v0.2.4 h1:uDGTzObBmIhyukqjCE9Jw0/EmmNU47Ztd5lBrtXTmWU=
github.com/tinyzimmer/go-gst v0.2.4/go.mod h1:aPV2CtdfNrtASAzj+DzrAISJr1Czfy25ihLJIh7f/tk= github.com/go-gst/go-gst v0.2.4/go.mod h1:aPV2CtdfNrtASAzj+DzrAISJr1Czfy25ihLJIh7f/tk=
github.com/tinyzimmer/go-gst v0.2.8 h1:l0O9IjxncP7TMeeDFfYeQjrmsDv4STE0j8gVU1N8J74= github.com/go-gst/go-gst v0.2.8 h1:l0O9IjxncP7TMeeDFfYeQjrmsDv4STE0j8gVU1N8J74=
github.com/tinyzimmer/go-gst v0.2.8/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto= github.com/go-gst/go-gst v0.2.8/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=

View File

@@ -6,22 +6,21 @@
// $ go generate // $ go generate
// $ go build -o libgstwebsocketsrc.so -buildmode c-shared . // $ go build -o libgstwebsocketsrc.so -buildmode c-shared .
// //
//
//go:generate gst-plugin-gen
//
// +plugin:Name=websocketsrc // +plugin:Name=websocketsrc
// +plugin:Description=GStreamer Websocket Source // +plugin:Description=GStreamer Websocket Source
// +plugin:Version=v0.0.1 // +plugin:Version=v0.0.1
// +plugin:License=gst.LicenseLGPL // +plugin:License=gst.LicenseLGPL
// +plugin:Source=go-gst // +plugin:Source=go-gst
// +plugin:Package=examples // +plugin:Package=examples
// +plugin:Origin=https://github.com/tinyzimmer/go-gst // +plugin:Origin=https://github.com/go-gst/go-gst
// +plugin:ReleaseDate=2021-01-10 // +plugin:ReleaseDate=2021-01-10
// //
// +element:Name=websocketsrc // +element:Name=websocketsrc
// +element:Rank=gst.RankNone // +element:Rank=gst.RankNone
// +element:Impl=websocketSrc // +element:Impl=websocketSrc
// +element:Subclass=gst.ExtendsElement // +element:Subclass=gst.ExtendsElement
//
//go:generate gst-plugin-gen
package main package main
import ( import (
@@ -31,8 +30,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"golang.org/x/net/websocket" "golang.org/x/net/websocket"
) )

View File

@@ -20,9 +20,9 @@ import (
"strings" "strings"
"time" "time"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
func queries(mainLoop *glib.MainLoop) error { func queries(mainLoop *glib.MainLoop) error {

View File

@@ -3,9 +3,9 @@ package main
import ( import (
"errors" "errors"
"fmt" "fmt"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"os" "os"
"time" "time"
) )

View File

@@ -25,8 +25,8 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
func tagsetter() error { func tagsetter() error {

View File

@@ -9,7 +9,6 @@
// /-{queue} - {fakesink} // /-{queue} - {fakesink}
// {filesrc} - {decodebin} - {queue} - {fakesink} // {filesrc} - {decodebin} - {queue} - {fakesink}
// \- ... // \- ...
//
package main package main
import ( import (
@@ -18,9 +17,9 @@ import (
"os" "os"
"time" "time"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples" "github.com/go-gst/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
func tagsetter(mainLoop *glib.MainLoop) error { func tagsetter(mainLoop *glib.MainLoop) error {

11
go.mod
View File

@@ -1,8 +1,7 @@
module github.com/tinyzimmer/go-gst module github.com/go-gst/go-gst
go 1.16 go 1.21
require ( require github.com/mattn/go-pointer v0.0.1
github.com/mattn/go-pointer v0.0.1
github.com/tinyzimmer/go-glib v0.0.25 require github.com/go-gst/go-glib v0.0.0-20230811085623-0abfebfabe3e
)

4
go.sum
View File

@@ -1,4 +1,4 @@
github.com/go-gst/go-glib v0.0.0-20230811085623-0abfebfabe3e h1:ZDMaEJsq1RFfqNQcFcdLbwHYc+quw9YihlwRPkVYeUA=
github.com/go-gst/go-glib v0.0.0-20230811085623-0abfebfabe3e/go.mod h1:rXuKU+tCN7pN+b/7oIyWv6MpnlGy+QWd7jRhWUNstjU=
github.com/mattn/go-pointer v0.0.1 h1:n+XhsuGeVO6MEAp7xyEukFINEa+Quek5psIR/ylA6o0= github.com/mattn/go-pointer v0.0.1 h1:n+XhsuGeVO6MEAp7xyEukFINEa+Quek5psIR/ylA6o0=
github.com/mattn/go-pointer v0.0.1/go.mod h1:2zXcozF6qYGgmsG+SeTZz3oAbFLdD3OWqnUbNvJZAlc= github.com/mattn/go-pointer v0.0.1/go.mod h1:2zXcozF6qYGgmsG+SeTZz3oAbFLdD3OWqnUbNvJZAlc=
github.com/tinyzimmer/go-glib v0.0.24 h1:ktZZC22/9t88kGRgNEFV/SESgIWhGHE+q7Z7Qj++luw=
github.com/tinyzimmer/go-glib v0.0.24/go.mod h1:ltV0gO6xNFzZhsIRbFXv8RTq9NGoNT2dmAER4YmZfaM=

View File

@@ -5,9 +5,9 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
"github.com/go-gst/go-gst/gst"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst"
) )
func getSinkCbsFromPtr(userData C.gpointer) *SinkCallbacks { func getSinkCbsFromPtr(userData C.gpointer) *SinkCallbacks {

View File

@@ -24,8 +24,8 @@ import (
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/base" "github.com/go-gst/go-gst/gst/base"
) )
// SinkCallbacks represents callbacks that can be installed on an app sink when data is available. // SinkCallbacks represents callbacks that can be installed on an app sink when data is available.

View File

@@ -21,9 +21,9 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/go-gst/go-gst/gst"
"github.com/go-gst/go-gst/gst/base"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/base"
) )
// SourceCallbacks represents callbacks to configure on an AppSource. // SourceCallbacks represents callbacks to configure on an AppSource.

View File

@@ -4,8 +4,8 @@ package app
import "C" import "C"
import ( import (
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
"github.com/tinyzimmer/go-gst/gst/base" "github.com/go-gst/go-gst/gst/base"
) )
func wrapAppSink(elem *gst.Element) *Sink { func wrapAppSink(elem *gst.Element) *Sink {

View File

@@ -18,7 +18,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// ClipBuffer will return a new buffer clipped to the given segment. The given buffer is no longer valid. // ClipBuffer will return a new buffer clipped to the given segment. The given buffer is no longer valid.

View File

@@ -5,6 +5,7 @@ package audio
*/ */
import "C" import "C"
import ( import (
"math"
"strings" "strings"
"unsafe" "unsafe"
) )

View File

@@ -8,8 +8,8 @@ import (
"math" "math"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
func init() { func init() {

View File

@@ -14,7 +14,7 @@ import (
"runtime" "runtime"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// Flags contains extra audio flags // Flags contains extra audio flags

View File

@@ -16,8 +16,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// GstBaseSink represents a GstBaseSink. // GstBaseSink represents a GstBaseSink.

View File

@@ -9,8 +9,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
//export goGstBaseSinkActivatePull //export goGstBaseSinkActivatePull

View File

@@ -58,8 +58,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
var ( var (

View File

@@ -9,8 +9,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// GstBaseSrc represents a GstBaseSrc. // GstBaseSrc represents a GstBaseSrc.

View File

@@ -7,8 +7,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
//export goGstBaseSrcGetCaps //export goGstBaseSrcGetCaps

View File

@@ -51,8 +51,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
var ( var (

View File

@@ -25,8 +25,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// GstBaseTransformFlowDropped is a GstFlowReturn that can be returned from Transform() and TransformIP() // GstBaseTransformFlowDropped is a GstFlowReturn that can be returned from Transform() and TransformIP()

View File

@@ -8,8 +8,8 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
//export goGstBaseTransformAcceptCaps //export goGstBaseTransformAcceptCaps

View File

@@ -55,8 +55,8 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
var ( var (

View File

@@ -62,7 +62,7 @@ import (
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// CollectPadsBufferFunc is a function that will be called when a (considered oldest) buffer can be muxed. // CollectPadsBufferFunc is a function that will be called when a (considered oldest) buffer can be muxed.

View File

@@ -10,7 +10,7 @@ import (
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
//export goGstCollectPadsBufferFunc //export goGstCollectPadsBufferFunc

View File

@@ -8,7 +8,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// FlowCombiner is a helper structure for aggregating flow returns. This struct // FlowCombiner is a helper structure for aggregating flow returns. This struct

View File

@@ -6,8 +6,8 @@ package base
import "C" import "C"
import ( import (
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// GstPushSrc represents a GstBaseSrc. // GstPushSrc represents a GstBaseSrc.

View File

@@ -8,8 +8,8 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
//export goGstPushSrcAlloc //export goGstPushSrcAlloc

View File

@@ -17,8 +17,8 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
var ( var (

View File

@@ -10,7 +10,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-gst/gst" "github.com/go-gst/go-gst/gst"
) )
// TypeFindHelper tries to find what type of data is flowing from the given source GstPad. // TypeFindHelper tries to find what type of data is flowing from the given source GstPad.

View File

@@ -9,7 +9,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
func toGObject(data unsafe.Pointer) *glib.Object { func toGObject(data unsafe.Pointer) *glib.Object {

View File

@@ -13,8 +13,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
//export goElementCallAsync //export goElementCallAsync

View File

@@ -7,7 +7,7 @@ import (
"runtime" "runtime"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// AllocationParams wraps the GstAllocationParams. // AllocationParams wraps the GstAllocationParams.

View File

@@ -75,7 +75,7 @@ import (
"fmt" "fmt"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Bin is a go wrapper arounds a GstBin. // Bin is a go wrapper arounds a GstBin.

View File

@@ -7,7 +7,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
func cbWrapBin(bin *C.GstBin) *Bin { func cbWrapBin(bin *C.GstBin) *Bin {

View File

@@ -26,7 +26,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// ExtendsBin implements an Extendable object based on a GstBin. // ExtendsBin implements an Extendable object based on a GstBin.

View File

@@ -27,8 +27,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// GetMaxBufferMemory returns the maximum amount of memory a buffer can hold. // GetMaxBufferMemory returns the maximum amount of memory a buffer can hold.
@@ -248,7 +248,6 @@ func (b *Buffer) OffsetEnd() int64 { return int64(b.Instance().offset_end) }
// //
// // > Buffer initialized with params: hello world // // > Buffer initialized with params: hello world
// // > Buffer was destroyed // // > Buffer was destroyed
//
func (b *Buffer) AddMeta(info *MetaInfo, params interface{}) *Meta { func (b *Buffer) AddMeta(info *MetaInfo, params interface{}) *Meta {
meta := C.gst_buffer_add_meta(b.Instance(), info.Instance(), (C.gpointer)(gopointer.Save(params))) meta := C.gst_buffer_add_meta(b.Instance(), info.Instance(), (C.gpointer)(gopointer.Save(params)))
if meta == nil { if meta == nil {

View File

@@ -7,7 +7,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// BufferPool is a go wrapper around a GstBufferPool. // BufferPool is a go wrapper around a GstBufferPool.

View File

@@ -24,8 +24,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// Bus is a Go wrapper around a GstBus. It provides convenience methods for // Bus is a Go wrapper around a GstBus. It provides convenience methods for
@@ -43,7 +43,7 @@ type Bus struct {
// import ( // import (
// "fmt" // "fmt"
// //
// "github.com/tinyzimmer/go-gst/gst" // "github.com/go-gst/go-gst/gst"
// ) // )
// //
// func main() { // func main() {
@@ -67,7 +67,6 @@ type Bus struct {
// } // }
// //
// // > [fakesrc0] ASYNC-START - Async task started // // > [fakesrc0] ASYNC-START - Async task started
//
func NewBus() *Bus { func NewBus() *Bus {
return FromGstBusUnsafeFull(unsafe.Pointer(C.gst_bus_new())) return FromGstBusUnsafeFull(unsafe.Pointer(C.gst_bus_new()))
} }
@@ -244,7 +243,9 @@ func (b *Bus) Peek() *Message {
// on Gtk+ or Qt, but also for any other non-trivial application that uses the GLib main loop. As this function // on Gtk+ or Qt, but also for any other non-trivial application that uses the GLib main loop. As this function
// runs a GLib main loop, any callback attached to the default GLib main context may be invoked. This could be // runs a GLib main loop, any callback attached to the default GLib main context may be invoked. This could be
// timeouts, GUI events, I/O events etc.; even if Poll is called with a 0 timeout. Any of these callbacks // timeouts, GUI events, I/O events etc.; even if Poll is called with a 0 timeout. Any of these callbacks
//
// may do things you do not expect, e.g. destroy the main application window or some other resource; change other // may do things you do not expect, e.g. destroy the main application window or some other resource; change other
//
// application state; display a dialog and run another main loop until the user clicks it away. In short, using this // application state; display a dialog and run another main loop until the user clicks it away. In short, using this
// function may add a lot of complexity to your code through unexpected re-entrancy and unexpected changes to your // function may add a lot of complexity to your code through unexpected re-entrancy and unexpected changes to your
// application's state. // application's state.

View File

@@ -17,8 +17,8 @@ import (
"runtime" "runtime"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// TypeCaps is the static Glib Type for a GstCaps. // TypeCaps is the static Glib Type for a GstCaps.
@@ -70,7 +70,6 @@ type CapsMapFunc func(features *CapsFeatures, structure *Structure) bool
// caps := gst.NewAnyCaps() // caps := gst.NewAnyCaps()
// fmt.Println(caps.IsAny()) // fmt.Println(caps.IsAny())
// // true // // true
//
func NewAnyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_new_any())) } func NewAnyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_new_any())) }
// NewEmptyCaps creates a new empty caps object. This is essentially the opposite of // NewEmptyCaps creates a new empty caps object. This is essentially the opposite of
@@ -79,7 +78,6 @@ func NewAnyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps
// caps := gst.NewEmptyCaps() // caps := gst.NewEmptyCaps()
// fmt.Println(caps.IsEmpty()) // fmt.Println(caps.IsEmpty())
// // true // // true
//
func NewEmptyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_new_empty())) } func NewEmptyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_new_empty())) }
// NewEmptySimpleCaps returns a new empty caps object with the given media format. // NewEmptySimpleCaps returns a new empty caps object with the given media format.
@@ -87,7 +85,6 @@ func NewEmptyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_ca
// caps := gst.NewEmptySimpleCaps("audio/x-raw") // caps := gst.NewEmptySimpleCaps("audio/x-raw")
// fmt.Println(caps.String()) // fmt.Println(caps.String())
// // audio/x-raw // // audio/x-raw
//
func NewEmptySimpleCaps(mediaFormat string) *Caps { func NewEmptySimpleCaps(mediaFormat string) *Caps {
cFormat := C.CString(mediaFormat) cFormat := C.CString(mediaFormat)
defer C.free(unsafe.Pointer(cFormat)) defer C.free(unsafe.Pointer(cFormat))
@@ -109,7 +106,6 @@ func NewFullCaps(structures ...*Structure) *Caps {
// caps := gst.NewCapsFromString("audio/x-raw, channels=2") // caps := gst.NewCapsFromString("audio/x-raw, channels=2")
// fmt.Println(caps.String()) // fmt.Println(caps.String())
// // audio/x-raw, channels=(int)2 // // audio/x-raw, channels=(int)2
//
func NewCapsFromString(capsStr string) *Caps { func NewCapsFromString(capsStr string) *Caps {
cStr := C.CString(capsStr) cStr := C.CString(capsStr)
defer C.free(unsafe.Pointer(cStr)) defer C.free(unsafe.Pointer(cStr))
@@ -220,7 +216,6 @@ func (c *Caps) CopyNth(n uint) *Caps {
// //
// // Removing system memory feature // // Removing system memory feature
// // true // // true
//
func (c *Caps) FilterAndMapInPlace(f CapsMapFunc) { func (c *Caps) FilterAndMapInPlace(f CapsMapFunc) {
ptr := gopointer.Save(f) ptr := gopointer.Save(f)
defer gopointer.Unref(ptr) defer gopointer.Unref(ptr)
@@ -256,7 +251,6 @@ func (c *Caps) Fixate() *Caps {
// }) // })
// //
// // audio/x-raw; // // audio/x-raw;
//
func (c *Caps) ForEach(f CapsMapFunc) bool { func (c *Caps) ForEach(f CapsMapFunc) bool {
ptr := gopointer.Save(f) ptr := gopointer.Save(f)
defer gopointer.Unref(ptr) defer gopointer.Unref(ptr)

View File

@@ -6,7 +6,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Go casting of pre-baked caps features // Go casting of pre-baked caps features
@@ -24,7 +24,6 @@ type CapsFeatures struct {
// feats := gst.NewCapsFeaturesEmpty() // feats := gst.NewCapsFeaturesEmpty()
// fmt.Println(feats.GetSize()) // fmt.Println(feats.GetSize())
// // 0 // // 0
//
func NewCapsFeaturesEmpty() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_features_new_empty()) } func NewCapsFeaturesEmpty() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_features_new_empty()) }
// NewCapsFeaturesAny returns a new ANY CapsFeatures. // NewCapsFeaturesAny returns a new ANY CapsFeatures.
@@ -32,7 +31,6 @@ func NewCapsFeaturesEmpty() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_f
// feats := gst.NewCapsFeaturesAny() // feats := gst.NewCapsFeaturesAny()
// fmt.Println(feats.IsAny()) // fmt.Println(feats.IsAny())
// // true // // true
//
func NewCapsFeaturesAny() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_features_new_any()) } func NewCapsFeaturesAny() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_features_new_any()) }
// NewCapsFeaturesFromString creates new CapsFeatures from the given string. // NewCapsFeaturesFromString creates new CapsFeatures from the given string.
@@ -74,7 +72,6 @@ func (c *CapsFeatures) Instance() *C.GstCapsFeatures {
// feats := gst.NewCapsFeaturesAny() // feats := gst.NewCapsFeaturesAny()
// fmt.Println(feats.String()) // fmt.Println(feats.String())
// // ANY // // ANY
//
func (c *CapsFeatures) String() string { func (c *CapsFeatures) String() string {
return C.GoString(C.gst_caps_features_to_string(c.Instance())) return C.GoString(C.gst_caps_features_to_string(c.Instance()))
} }
@@ -95,7 +92,6 @@ func (c *CapsFeatures) String() string {
// // 1 // // 1
// // true // // true
// // memory:SystemMemory // // memory:SystemMemory
//
func (c *CapsFeatures) Add(feature string) { func (c *CapsFeatures) Add(feature string) {
cStr := C.CString(feature) cStr := C.CString(feature)
defer C.free(unsafe.Pointer(cStr)) defer C.free(unsafe.Pointer(cStr))

View File

@@ -21,7 +21,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// InterfaceChildProxy represents the GstChildProxy interface. Use this when querying bins // InterfaceChildProxy represents the GstChildProxy interface. Use this when querying bins

View File

@@ -7,7 +7,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
func wrapParent(parent *C.GstChildProxy) *ChildProxy { return &ChildProxy{ptr: parent} } func wrapParent(parent *C.GstChildProxy) *ChildProxy { return &ChildProxy{ptr: parent} }

View File

@@ -24,8 +24,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// ClockCallback is the prototype of a clock callback function. // ClockCallback is the prototype of a clock callback function.
@@ -272,7 +272,7 @@ func (c *Clock) NewSingleShotID(at time.Duration) *ClockID {
} }
// PeriodicIDReinit reinitializes the provided periodic id to the provided start time and interval. Does not // PeriodicIDReinit reinitializes the provided periodic id to the provided start time and interval. Does not
/// modify the reference count. // / modify the reference count.
func (c *Clock) PeriodicIDReinit(clockID *ClockID, startTime, interval time.Duration) bool { func (c *Clock) PeriodicIDReinit(clockID *ClockID, startTime, interval time.Duration) bool {
return gobool(C.gst_clock_periodic_id_reinit( return gobool(C.gst_clock_periodic_id_reinit(
c.Instance(), c.Instance(),

View File

@@ -8,7 +8,7 @@ import (
"strings" "strings"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Device is a Go representation of a GstDevice. // Device is a Go representation of a GstDevice.

View File

@@ -38,8 +38,8 @@ import (
"runtime" "runtime"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// Element is a Go wrapper around a GstElement. // Element is a Go wrapper around a GstElement.
@@ -515,6 +515,7 @@ func (e *Element) GetRequestPad(name string) *Pad {
} }
return FromGstPadUnsafeFull(unsafe.Pointer(pad)) return FromGstPadUnsafeFull(unsafe.Pointer(pad))
} }
// ReleaseRequestPad releases request pad // ReleaseRequestPad releases request pad
func (e *Element) ReleaseRequestPad(pad *Pad) { func (e *Element) ReleaseRequestPad(pad *Pad) {
C.gst_element_release_request_pad(e.Instance(), pad.Instance()) C.gst_element_release_request_pad(e.Instance(), pad.Instance())

View File

@@ -7,7 +7,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// ElementClass represents the subclass of an element provided by a plugin. // ElementClass represents the subclass of an element provided by a plugin.

View File

@@ -9,7 +9,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
//export goGstElementClassChangeState //export goGstElementClassChangeState

View File

@@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// NewElement creates a new element using the factory of the given name. // NewElement creates a new element using the factory of the given name.

View File

@@ -43,7 +43,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// ExtendsElement implements an Extendable object based on a GstElement. // ExtendsElement implements an Extendable object based on a GstElement.

View File

@@ -6,7 +6,7 @@ import (
"runtime" "runtime"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// GhostPad is a go representation of a GstGhostPad. // GhostPad is a go representation of a GstGhostPad.

View File

@@ -9,7 +9,7 @@ import (
"runtime" "runtime"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Memory is a go representation of GstMemory. This object is implemented in a read-only fashion // Memory is a go representation of GstMemory. This object is implemented in a read-only fashion

View File

@@ -9,7 +9,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Message is a Go wrapper around a GstMessage. It provides convenience methods for // Message is a Go wrapper around a GstMessage. It provides convenience methods for

View File

@@ -6,7 +6,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
func getMessageSourceObj(src interface{}) *C.GstObject { func getMessageSourceObj(src interface{}) *C.GstObject {

View File

@@ -27,7 +27,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Meta is a go representation of GstMeta. // Meta is a go representation of GstMeta.

View File

@@ -6,7 +6,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// MiniObject is an opaque struct meant to form the base of gstreamer // MiniObject is an opaque struct meant to form the base of gstreamer

View File

@@ -7,7 +7,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Object is a go representation of a GstObject. // Object is a go representation of a GstObject.

View File

@@ -83,8 +83,8 @@ import (
"errors" "errors"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// PadFuncMap is an type of map for registering callbacks to a pad instance. // PadFuncMap is an type of map for registering callbacks to a pad instance.

View File

@@ -7,8 +7,8 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
func getParent(parent *C.GstObject) *Object { func getParent(parent *C.GstObject) *Object {

View File

@@ -5,7 +5,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// PadTemplate is a go representation of a GstPadTemplate // PadTemplate is a go representation of a GstPadTemplate

View File

@@ -9,7 +9,7 @@ import (
"strings" "strings"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Pipeline is a go implementation of a GstPipeline. // Pipeline is a go implementation of a GstPipeline.

View File

@@ -53,8 +53,8 @@ import (
"errors" "errors"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// PluginMetadata represents the information to include when registering a new plugin // PluginMetadata represents the information to include when registering a new plugin

View File

@@ -7,7 +7,7 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Query is a go wrapper around a GstQuery. // Query is a go wrapper around a GstQuery.

View File

@@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Registry is a go representation of a GstRegistry. // Registry is a go representation of a GstRegistry.

View File

@@ -6,7 +6,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// Stream is a Go representation of a GstStream. // Stream is a Go representation of a GstStream.

View File

@@ -7,7 +7,7 @@ import (
"fmt" "fmt"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// StreamCollection is a Go representation of a GstStreamCollection. // StreamCollection is a Go representation of a GstStreamCollection.

View File

@@ -20,8 +20,8 @@ import (
"sync" "sync"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// Structure is a go implementation of a C GstStructure. // Structure is a go implementation of a C GstStructure.

View File

@@ -18,8 +18,8 @@ import (
"time" "time"
"unsafe" "unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer" gopointer "github.com/mattn/go-pointer"
"github.com/tinyzimmer/go-glib/glib"
) )
// TagList is a go wrapper around a GstTagList. For now, until the rest of the methods are // TagList is a go wrapper around a GstTagList. For now, until the rest of the methods are
@@ -50,7 +50,6 @@ func FromGstTagListUnsafeFull(tags unsafe.Pointer) *TagList {
// tagList := gst.NewEmptyTagList() // tagList := gst.NewEmptyTagList()
// fmt.Println(tagList.IsEmpty()) // fmt.Println(tagList.IsEmpty())
// // true // // true
//
func NewEmptyTagList() *TagList { func NewEmptyTagList() *TagList {
return FromGstTagListUnsafeFull(unsafe.Pointer(C.gst_tag_list_new_empty())) return FromGstTagListUnsafeFull(unsafe.Pointer(C.gst_tag_list_new_empty()))
} }
@@ -88,7 +87,6 @@ func (t *TagList) Unref() { C.gst_tag_list_unref(t.Instance()) }
// myAlbum, _ := tagList.GetString(gst.TagAlbum) // myAlbum, _ := tagList.GetString(gst.TagAlbum)
// fmt.Println(myAlbum) // fmt.Println(myAlbum)
// // MyNewAlbum // // MyNewAlbum
//
func (t *TagList) AddValue(mergeMode TagMergeMode, tag Tag, value interface{}) { func (t *TagList) AddValue(mergeMode TagMergeMode, tag Tag, value interface{}) {
ctag := C.CString(string(tag)) ctag := C.CString(string(tag))
defer C.free(unsafe.Pointer(ctag)) defer C.free(unsafe.Pointer(ctag))
@@ -141,7 +139,6 @@ type TagListForEachFunc func(tagList *TagList, tag Tag)
// //
// // album-artist : tinyzimmer // // album-artist : tinyzimmer
// // album : GstreamerInGo // // album : GstreamerInGo
//
func (t *TagList) ForEach(f TagListForEachFunc) { func (t *TagList) ForEach(f TagListForEachFunc) {
ptr := gopointer.Save(f) ptr := gopointer.Save(f)
defer gopointer.Unref(ptr) defer gopointer.Unref(ptr)

View File

@@ -5,7 +5,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// InterfaceTagSetter represents the GstTagsetter interface GType. Use this when querying bins // InterfaceTagSetter represents the GstTagsetter interface GType. Use this when querying bins

View File

@@ -5,7 +5,7 @@ import "C"
import ( import (
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
// InterfaceTOCSetter represents the GstTocSetter interface GType. Use this when querying bins // InterfaceTOCSetter represents the GstTocSetter interface GType. Use this when querying bins

View File

@@ -23,7 +23,7 @@ import (
"errors" "errors"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
var globalURIHdlr URIHandler var globalURIHdlr URIHandler

View File

@@ -9,7 +9,7 @@ import (
"math" "math"
"unsafe" "unsafe"
"github.com/tinyzimmer/go-glib/glib" "github.com/go-gst/go-glib/glib"
) )
//export goURIHdlrGetURIType //export goURIHdlrGetURIType

Some files were not shown because too many files have changed in this diff Show More