From d0fc9e926a78b60161522a786cb417bf26f8bcbe Mon Sep 17 00:00:00 2001 From: RSWilli Date: Fri, 11 Aug 2023 13:28:57 +0200 Subject: [PATCH] change module name and use new golang version --- README.md | 15 ++--- cmd/gst-plugin-gen/main.go | 4 +- examples/appsink/main.go | 6 +- examples/appsrc/main.go | 10 +-- examples/bins/main.go | 6 +- examples/common.go | 2 +- examples/custom_events/main.go | 6 +- examples/decodebin/main.go | 14 ++-- examples/discoverer/main.go | 4 +- examples/events/main.go | 6 +- examples/gif-encoder/main.go | 10 +-- examples/launch/main.go | 6 +- examples/pad-probes/main.go | 12 ++-- examples/playbin/main.go | 6 +- examples/plugins/boilerplate/boilerplate.go | 7 +- examples/plugins/gobin/gobin.go | 7 +- examples/plugins/gofilesink/filesink.go | 16 ++--- examples/plugins/gofilesrc/filesrc.go | 16 ++--- examples/plugins/minio/common.go | 4 +- examples/plugins/minio/go.mod | 6 +- examples/plugins/minio/go.sum | 32 ++++----- examples/plugins/minio/miniosink.go | 6 +- examples/plugins/minio/miniosrc.go | 6 +- examples/plugins/minio/plugin.go | 10 ++- examples/plugins/minio/properties.go | 2 +- examples/plugins/websocketsrc/go.mod | 6 +- examples/plugins/websocketsrc/go.sum | 24 +++---- examples/plugins/websocketsrc/websocketsrc.go | 15 ++--- examples/queries/main.go | 6 +- examples/requestpad/main.go | 6 +- examples/tagsetter/main.go | 6 +- examples/toc/main.go | 13 ++-- go.mod | 11 ++-- go.sum | 4 +- gst/app/cgo_exports.go | 4 +- gst/app/gst_app_sink.go | 4 +- gst/app/gst_app_src.go | 4 +- gst/app/wrappers.go | 4 +- gst/audio/gst_audio_buffer.go | 2 +- gst/audio/gst_audio_channels.go | 1 + gst/audio/gst_audio_format.go | 4 +- gst/audio/gst_audio_info.go | 2 +- gst/base/gst_base_sink.go | 4 +- gst/base/gst_base_sink_exports.go | 4 +- gst/base/gst_base_sink_impl.go | 4 +- gst/base/gst_base_src.go | 4 +- gst/base/gst_base_src_exports.go | 4 +- gst/base/gst_base_src_impl.go | 4 +- gst/base/gst_base_transform.go | 4 +- gst/base/gst_base_transform_exports.go | 4 +- gst/base/gst_base_transform_impl.go | 4 +- gst/base/gst_collect_pads.go | 2 +- gst/base/gst_collect_pads_exports.go | 2 +- gst/base/gst_flow_combiner.go | 2 +- gst/base/gst_push_src.go | 4 +- gst/base/gst_push_src_exports.go | 4 +- gst/base/gst_push_src_impl.go | 4 +- gst/base/gst_type_find.go | 2 +- gst/c_util.go | 2 +- gst/cgo_exports.go | 2 +- gst/gst_allocator.go | 2 +- gst/gst_bin.go | 2 +- gst/gst_bin_exports.go | 2 +- gst/gst_bin_impl.go | 2 +- gst/gst_buffer.go | 51 +++++++------- gst/gst_buffer_pool.go | 2 +- gst/gst_bus.go | 49 +++++++------- gst/gst_caps.go | 66 +++++++++---------- gst/gst_caps_features.go | 44 ++++++------- gst/gst_child_proxy.go | 2 +- gst/gst_child_proxy_exports.go | 2 +- gst/gst_clock.go | 30 ++++----- gst/gst_device.go | 2 +- gst/gst_element.go | 19 +++--- gst/gst_element_class.go | 2 +- gst/gst_element_exports.go | 2 +- gst/gst_element_factory.go | 2 +- gst/gst_element_impl.go | 2 +- gst/gst_ghost_pad.go | 2 +- gst/gst_memory.go | 2 +- gst/gst_message.go | 2 +- gst/gst_message_constructors.go | 2 +- gst/gst_meta.go | 2 +- gst/gst_mini_object.go | 2 +- gst/gst_object.go | 2 +- gst/gst_pad.go | 2 +- gst/gst_pad_exports.go | 2 +- gst/gst_pad_template.go | 2 +- gst/gst_pipeline.go | 2 +- gst/gst_plugin.go | 2 +- gst/gst_query.go | 2 +- gst/gst_registry.go | 2 +- gst/gst_stream.go | 2 +- gst/gst_stream_collection.go | 2 +- gst/gst_structure.go | 2 +- gst/gst_tag_list.go | 39 +++++------ gst/gst_tag_setter.go | 2 +- gst/gst_toc_setter.go | 2 +- gst/gst_uri_handler.go | 2 +- gst/gst_uri_handler_exports.go | 2 +- gst/gst_values.go | 2 +- gst/gst_wrappers.go | 2 +- gst/gstnet/net_address_meta.go | 2 +- gst/pbutils/discoverer.go | 4 +- gst/rtp/gst_rtp_meta.go | 4 +- gst/video/c_util.go | 2 +- gst/video/cgo_exports.go | 2 +- gst/video/convert_frame.go | 2 +- gst/video/gst_color_balance.go | 4 +- gst/video/gst_meta.go | 2 +- gst/video/gst_navigation.go | 22 +++---- gst/video/gst_video.go | 2 +- gst/video/gst_video_format.go | 4 +- gst/video/gst_video_info.go | 2 +- 114 files changed, 395 insertions(+), 420 deletions(-) diff --git a/README.md b/README.md index 0a0d58f..06bb9a1 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,11 @@ 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/tinyzimmer/go-gst) -[![GoReportCard](https://goreportcard.com/badge/github.com/nanomsg/mangos)](https://goreportcard.com/report/github.com/tinyzimmer/go-gst) -![](https://github.com/tinyzimmer/go-gst/workflows/Tests/badge.svg) +[![godoc reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/go-gst/go-gst) +[![GoReportCard](https://goreportcard.com/badge/github.com/nanomsg/mangos)](https://goreportcard.com/report/github.com/go-gst/go-gst) +![](https://github.com/go-gst/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. **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 . ``` -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 @@ -56,8 +55,8 @@ import ( "os" "strings" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) func main() { diff --git a/cmd/gst-plugin-gen/main.go b/cmd/gst-plugin-gen/main.go index 4ad8d67..6e043e8 100644 --- a/cmd/gst-plugin-gen/main.go +++ b/cmd/gst-plugin-gen/main.go @@ -136,9 +136,9 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" {{- if (.Config.Element.Subclass | extendsFromBase) }} - "github.com/tinyzimmer/go-gst/gst/base" + "github.com/go-gst/go-gst/gst/base" {{- end }} ) diff --git a/examples/appsink/main.go b/examples/appsink/main.go index e85f865..555832d 100644 --- a/examples/appsink/main.go +++ b/examples/appsink/main.go @@ -8,9 +8,9 @@ import ( "os/signal" "time" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/app" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/app" ) func createPipeline() (*gst.Pipeline, error) { diff --git a/examples/appsrc/main.go b/examples/appsrc/main.go index b734b8d..c148193 100644 --- a/examples/appsrc/main.go +++ b/examples/appsrc/main.go @@ -7,11 +7,11 @@ import ( "image/color" "time" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/app" - "github.com/tinyzimmer/go-gst/gst/video" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/app" + "github.com/go-gst/go-gst/gst/video" ) const width = 320 diff --git a/examples/bins/main.go b/examples/bins/main.go index df8d207..a4d279a 100644 --- a/examples/bins/main.go +++ b/examples/bins/main.go @@ -2,9 +2,9 @@ package main import ( "fmt" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" "os" ) diff --git a/examples/common.go b/examples/common.go index a0c5d7d..f084917 100644 --- a/examples/common.go +++ b/examples/common.go @@ -3,7 +3,7 @@ package examples import ( "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 diff --git a/examples/custom_events/main.go b/examples/custom_events/main.go index db3ff3c..39f285b 100644 --- a/examples/custom_events/main.go +++ b/examples/custom_events/main.go @@ -6,9 +6,9 @@ import ( "fmt" "time" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) // ExampleCustomEvent demonstrates a custom event structue. Currerntly nested structs diff --git a/examples/decodebin/main.go b/examples/decodebin/main.go index 2ecefd7..890ba7f 100644 --- a/examples/decodebin/main.go +++ b/examples/decodebin/main.go @@ -6,7 +6,7 @@ // Before the pipeline hasn't been prerolled, the decodebin can't possibly know what // format it gets as its input. So at first, the pipeline looks like this: // -// {filesrc} - {decodebin} +// {filesrc} - {decodebin} // // As soon as the decodebin has detected the stream format, it will try to decode every // contained stream to its raw format. @@ -18,9 +18,9 @@ // So for a file that contains one audio and one video stream, // the pipeline looks like the following: // -// /-[audio]-{audioconvert}-{audioresample}-{autoaudiosink} -// {filesrc}-{decodebin}-| -// \-[video]-{videoconvert}-{videoscale}-{autovideosink} +// /-[audio]-{audioconvert}-{audioresample}-{autoaudiosink} +// {filesrc}-{decodebin}-| +// \-[video]-{videoconvert}-{videoscale}-{autovideosink} // // Both auto-sinks at the end automatically select the best available (actual) sink. Since the // selection of available actual sinks is platform specific @@ -38,9 +38,9 @@ import ( "os" "strings" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) var srcFile string diff --git a/examples/discoverer/main.go b/examples/discoverer/main.go index b770fca..93f3580 100644 --- a/examples/discoverer/main.go +++ b/examples/discoverer/main.go @@ -15,8 +15,8 @@ import ( "os" "time" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/pbutils" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/pbutils" ) func main() { diff --git a/examples/events/main.go b/examples/events/main.go index 13da0fc..9b07804 100644 --- a/examples/events/main.go +++ b/examples/events/main.go @@ -24,9 +24,9 @@ import ( "fmt" "time" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) func runPipeline(loop *glib.MainLoop) error { diff --git a/examples/gif-encoder/main.go b/examples/gif-encoder/main.go index 99e6ec4..579751b 100644 --- a/examples/gif-encoder/main.go +++ b/examples/gif-encoder/main.go @@ -13,11 +13,11 @@ import ( "strings" "time" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/app" - "github.com/tinyzimmer/go-gst/gst/video" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/app" + "github.com/go-gst/go-gst/gst/video" ) var srcFile string diff --git a/examples/launch/main.go b/examples/launch/main.go index 0ddb9ea..e1772e5 100644 --- a/examples/launch/main.go +++ b/examples/launch/main.go @@ -9,9 +9,9 @@ import ( "os" "strings" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) func runPipeline(mainLoop *glib.MainLoop) error { diff --git a/examples/pad-probes/main.go b/examples/pad-probes/main.go index bbc5f9b..4a40201 100644 --- a/examples/pad-probes/main.go +++ b/examples/pad-probes/main.go @@ -4,9 +4,9 @@ // the application about the states of the dataflow. Those are mostly used for // changing pipelines dynamically at runtime or for inspecting/modifying buffers or events // -// |-[probe] -// / -// {audiotestsrc} - {fakesink} +// |-[probe] +// / +// {audiotestsrc} - {fakesink} package main import ( @@ -15,9 +15,9 @@ import ( "math" "time" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) func padProbes(mainLoop *glib.MainLoop) error { diff --git a/examples/playbin/main.go b/examples/playbin/main.go index eb1a111..0294f36 100644 --- a/examples/playbin/main.go +++ b/examples/playbin/main.go @@ -16,9 +16,9 @@ import ( "fmt" "os" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) var srcURI string diff --git a/examples/plugins/boilerplate/boilerplate.go b/examples/plugins/boilerplate/boilerplate.go index cea4639..73417b7 100644 --- a/examples/plugins/boilerplate/boilerplate.go +++ b/examples/plugins/boilerplate/boilerplate.go @@ -1,12 +1,10 @@ -//go:generate gst-plugin-gen -// // +plugin:Name=boilerplate // +plugin:Description=My plugin written in go // +plugin:Version=v0.0.1 // +plugin:License=gst.LicenseLGPL // +plugin:Source=go-gst // +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 // // +element:Name=myelement @@ -14,9 +12,10 @@ // +element:Impl=myelement // +element:Subclass=gst.ExtendsElement // +//go:generate gst-plugin-gen package main -import "github.com/tinyzimmer/go-glib/glib" +import "github.com/go-gst/go-glib/glib" func main() {} diff --git a/examples/plugins/gobin/gobin.go b/examples/plugins/gobin/gobin.go index 66b1256..14bba2c 100644 --- a/examples/plugins/gobin/gobin.go +++ b/examples/plugins/gobin/gobin.go @@ -1,12 +1,10 @@ -//go:generate gst-plugin-gen -// // +plugin:Name=gobin // +plugin:Description=A bin element written in go // +plugin:Version=v0.0.1 // +plugin:License=gst.LicenseLGPL // +plugin:Source=go-gst // +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 // // +element:Name=gobin @@ -15,9 +13,10 @@ // +element:Subclass=gst.ExtendsBin // +element:Interfaces=gst.InterfaceChildProxy // +//go:generate gst-plugin-gen package main -import "github.com/tinyzimmer/go-glib/glib" +import "github.com/go-gst/go-glib/glib" func main() {} diff --git a/examples/plugins/gofilesink/filesink.go b/examples/plugins/gofilesink/filesink.go index 5fa7923..2f16cb1 100644 --- a/examples/plugins/gofilesink/filesink.go +++ b/examples/plugins/gofilesink/filesink.go @@ -10,11 +10,8 @@ // // In order to build the plugin for use by GStreamer, you can do the following: // -// $ go generate -// $ go build -o libgstgofilesink.so -buildmode c-shared . -// -// -//go:generate gst-plugin-gen +// $ go generate +// $ go build -o libgstgofilesink.so -buildmode c-shared . // // +plugin:Name=gofilesink // +plugin:Description=File plugins written in go @@ -22,7 +19,7 @@ // +plugin:License=gst.LicenseLGPL // +plugin:Source=go-gst // +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 // // +element:Name=gofilesink @@ -31,6 +28,7 @@ // +element:Subclass=base.ExtendsBaseSink // +element:Interfaces=gst.InterfaceURIHandler // +//go:generate gst-plugin-gen package main import ( @@ -40,9 +38,9 @@ import ( "os" "strings" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/base" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/base" ) // main is left unimplemented since these files are compiled to c-shared. diff --git a/examples/plugins/gofilesrc/filesrc.go b/examples/plugins/gofilesrc/filesrc.go index cdd4fa5..6309364 100644 --- a/examples/plugins/gofilesrc/filesrc.go +++ b/examples/plugins/gofilesrc/filesrc.go @@ -10,11 +10,8 @@ // // In order to build the plugin for use by GStreamer, you can do the following: // -// $ go generate -// $ go build -o libgstgofilesrc.so -buildmode c-shared . -// -// -//go:generate gst-plugin-gen +// $ go generate +// $ go build -o libgstgofilesrc.so -buildmode c-shared . // // +plugin:Name=gofilesrc // +plugin:Description=File plugins written in go @@ -22,7 +19,7 @@ // +plugin:License=gst.LicenseLGPL // +plugin:Source=go-gst // +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 // // +element:Name=gofilesrc @@ -31,6 +28,7 @@ // +element:Subclass=base.ExtendsBaseSrc // +element:Interfaces=gst.InterfaceURIHandler // +//go:generate gst-plugin-gen package main import ( @@ -40,9 +38,9 @@ import ( "os" "strings" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/base" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/base" ) // main is left unimplemented since these files are compiled to c-shared. diff --git a/examples/plugins/minio/common.go b/examples/plugins/minio/common.go index d07300f..35400d6 100644 --- a/examples/plugins/minio/common.go +++ b/examples/plugins/minio/common.go @@ -8,10 +8,10 @@ import ( "net/http" "os" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" minio "github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7/pkg/credentials" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" ) const ( diff --git a/examples/plugins/minio/go.mod b/examples/plugins/minio/go.mod index 2eef2d6..262e132 100644 --- a/examples/plugins/minio/go.mod +++ b/examples/plugins/minio/go.mod @@ -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 require ( github.com/minio/minio-go/v7 v7.0.7 - github.com/tinyzimmer/go-glib v0.0.19 - github.com/tinyzimmer/go-gst v0.2.12 + github.com/go-gst/go-glib v0.0.19 + github.com/go-gst/go-gst v0.2.12 ) diff --git a/examples/plugins/minio/go.sum b/examples/plugins/minio/go.sum index 954f947..17b2788 100644 --- a/examples/plugins/minio/go.sum +++ b/examples/plugins/minio/go.sum @@ -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.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= 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/tinyzimmer/go-glib v0.0.7/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= -github.com/tinyzimmer/go-glib v0.0.11 h1:+X15JtyglmBhiLu5KXHWxcxhypyc/CEqW+SIFmjZ110= -github.com/tinyzimmer/go-glib v0.0.11/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= -github.com/tinyzimmer/go-glib v0.0.18 h1:zSlJK5NDcquHK4FFQ2cF6tRavo2Y+6jc3Qowj1sN+oQ= -github.com/tinyzimmer/go-glib v0.0.18/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= -github.com/tinyzimmer/go-gst v0.2.2 h1:aTIHCj1bu7ZT4i4cxi246puWI2QOCR5yQ2Uw/SicOgM= -github.com/tinyzimmer/go-gst v0.2.2/go.mod h1:HYNtv9Qs2jxNAkTF9VJmC+CKLaWKQkZY7hJHbxfLfFM= -github.com/tinyzimmer/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/tinyzimmer/go-gst v0.2.4 h1:uDGTzObBmIhyukqjCE9Jw0/EmmNU47Ztd5lBrtXTmWU= -github.com/tinyzimmer/go-gst v0.2.4/go.mod h1:aPV2CtdfNrtASAzj+DzrAISJr1Czfy25ihLJIh7f/tk= -github.com/tinyzimmer/go-gst v0.2.8 h1:l0O9IjxncP7TMeeDFfYeQjrmsDv4STE0j8gVU1N8J74= -github.com/tinyzimmer/go-gst v0.2.8/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto= -github.com/tinyzimmer/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-glib v0.0.7 h1:09SIbhaL+E+5U/4qbZXiM7f6HEDvcxOBuEiSCkT9FNw= +github.com/go-gst/go-glib v0.0.7/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= +github.com/go-gst/go-glib v0.0.11 h1:+X15JtyglmBhiLu5KXHWxcxhypyc/CEqW+SIFmjZ110= +github.com/go-gst/go-glib v0.0.11/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= +github.com/go-gst/go-glib v0.0.18 h1:zSlJK5NDcquHK4FFQ2cF6tRavo2Y+6jc3Qowj1sN+oQ= +github.com/go-gst/go-glib v0.0.18/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= +github.com/go-gst/go-gst v0.2.2 h1:aTIHCj1bu7ZT4i4cxi246puWI2QOCR5yQ2Uw/SicOgM= +github.com/go-gst/go-gst v0.2.2/go.mod h1:HYNtv9Qs2jxNAkTF9VJmC+CKLaWKQkZY7hJHbxfLfFM= +github.com/go-gst/go-gst v0.2.3 h1:36NX7DqkUq7ehq+81Dmro8r9VEew9ZZ4K/Ic8oWpHck= +github.com/go-gst/go-gst v0.2.3/go.mod h1:atM89iP55Hwgc+zoCVWT15qgThdxQ7WZJ5sD/uANDRI= +github.com/go-gst/go-gst v0.2.4 h1:uDGTzObBmIhyukqjCE9Jw0/EmmNU47Ztd5lBrtXTmWU= +github.com/go-gst/go-gst v0.2.4/go.mod h1:aPV2CtdfNrtASAzj+DzrAISJr1Czfy25ihLJIh7f/tk= +github.com/go-gst/go-gst v0.2.8 h1:l0O9IjxncP7TMeeDFfYeQjrmsDv4STE0j8gVU1N8J74= +github.com/go-gst/go-gst v0.2.8/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto= +github.com/go-gst/go-gst v0.2.11 h1:Nfaz7k0L2stRrSGhdGyZbfbbCUMU6/zC0UBi8Ftt8S0= +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-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= diff --git a/examples/plugins/minio/miniosink.go b/examples/plugins/minio/miniosink.go index bae710e..cb1369f 100644 --- a/examples/plugins/minio/miniosink.go +++ b/examples/plugins/minio/miniosink.go @@ -7,9 +7,9 @@ import ( "strings" "sync" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/base" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/base" ) var sinkCAT = gst.NewDebugCategory( diff --git a/examples/plugins/minio/miniosrc.go b/examples/plugins/minio/miniosrc.go index 5c177f6..4462b9c 100644 --- a/examples/plugins/minio/miniosrc.go +++ b/examples/plugins/minio/miniosrc.go @@ -10,9 +10,9 @@ import ( minio "github.com/minio/minio-go/v7" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/base" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/base" ) var srcCAT = gst.NewDebugCategory( diff --git a/examples/plugins/minio/plugin.go b/examples/plugins/minio/plugin.go index b391473..35165e8 100644 --- a/examples/plugins/minio/plugin.go +++ b/examples/plugins/minio/plugin.go @@ -5,11 +5,9 @@ // 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. // -// // 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 import "C" @@ -17,8 +15,8 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/base" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/base" ) // The metadata for this plugin @@ -31,7 +29,7 @@ var pluginMeta = &gst.PluginMetadata{ License: gst.LicenseLGPL, Source: "gst-pipeline-operator", Package: "plugins", - Origin: "https://github.com/tinyzimmer/gst-pipeline-operator", + Origin: "https://github.com/go-gst/gst-pipeline-operator", ReleaseDate: "2021-01-12", // The init function is called to register elements provided by the plugin. Init: func(plugin *gst.Plugin) bool { diff --git a/examples/plugins/minio/properties.go b/examples/plugins/minio/properties.go index c88cd09..7f4b135 100644 --- a/examples/plugins/minio/properties.go +++ b/examples/plugins/minio/properties.go @@ -3,7 +3,7 @@ package main import ( "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. diff --git a/examples/plugins/websocketsrc/go.mod b/examples/plugins/websocketsrc/go.mod index db19a7e..8affb0e 100644 --- a/examples/plugins/websocketsrc/go.mod +++ b/examples/plugins/websocketsrc/go.mod @@ -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 require ( github.com/minio/minio-go/v7 v7.0.7 - github.com/tinyzimmer/go-glib v0.0.18 - github.com/tinyzimmer/go-gst v0.2.8 + github.com/go-gst/go-glib v0.0.18 + github.com/go-gst/go-gst v0.2.8 golang.org/x/net v0.0.0-20200707034311-ab3426394381 ) diff --git a/examples/plugins/websocketsrc/go.sum b/examples/plugins/websocketsrc/go.sum index f851ef0..c38aa09 100644 --- a/examples/plugins/websocketsrc/go.sum +++ b/examples/plugins/websocketsrc/go.sum @@ -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.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 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/tinyzimmer/go-glib v0.0.7/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= -github.com/tinyzimmer/go-glib v0.0.11 h1:+X15JtyglmBhiLu5KXHWxcxhypyc/CEqW+SIFmjZ110= -github.com/tinyzimmer/go-glib v0.0.11/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= -github.com/tinyzimmer/go-glib v0.0.18 h1:zSlJK5NDcquHK4FFQ2cF6tRavo2Y+6jc3Qowj1sN+oQ= -github.com/tinyzimmer/go-glib v0.0.18/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= -github.com/tinyzimmer/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/tinyzimmer/go-gst v0.2.4 h1:uDGTzObBmIhyukqjCE9Jw0/EmmNU47Ztd5lBrtXTmWU= -github.com/tinyzimmer/go-gst v0.2.4/go.mod h1:aPV2CtdfNrtASAzj+DzrAISJr1Czfy25ihLJIh7f/tk= -github.com/tinyzimmer/go-gst v0.2.8 h1:l0O9IjxncP7TMeeDFfYeQjrmsDv4STE0j8gVU1N8J74= -github.com/tinyzimmer/go-gst v0.2.8/go.mod h1:C1yElEfXm8k0ddR4NdT1cJS4vFHv2wyVrIBSJCB6Nto= +github.com/go-gst/go-glib v0.0.7 h1:09SIbhaL+E+5U/4qbZXiM7f6HEDvcxOBuEiSCkT9FNw= +github.com/go-gst/go-glib v0.0.7/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= +github.com/go-gst/go-glib v0.0.11 h1:+X15JtyglmBhiLu5KXHWxcxhypyc/CEqW+SIFmjZ110= +github.com/go-gst/go-glib v0.0.11/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= +github.com/go-gst/go-glib v0.0.18 h1:zSlJK5NDcquHK4FFQ2cF6tRavo2Y+6jc3Qowj1sN+oQ= +github.com/go-gst/go-glib v0.0.18/go.mod h1:zy2cs6eXSTtqqYrv9/UgYMDfr4pWKuYPSzwX87cBGX4= +github.com/go-gst/go-gst v0.2.3 h1:36NX7DqkUq7ehq+81Dmro8r9VEew9ZZ4K/Ic8oWpHck= +github.com/go-gst/go-gst v0.2.3/go.mod h1:atM89iP55Hwgc+zoCVWT15qgThdxQ7WZJ5sD/uANDRI= +github.com/go-gst/go-gst v0.2.4 h1:uDGTzObBmIhyukqjCE9Jw0/EmmNU47Ztd5lBrtXTmWU= +github.com/go-gst/go-gst v0.2.4/go.mod h1:aPV2CtdfNrtASAzj+DzrAISJr1Czfy25ihLJIh7f/tk= +github.com/go-gst/go-gst v0.2.8 h1:l0O9IjxncP7TMeeDFfYeQjrmsDv4STE0j8gVU1N8J74= +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-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= diff --git a/examples/plugins/websocketsrc/websocketsrc.go b/examples/plugins/websocketsrc/websocketsrc.go index a1ebc5f..12a28e2 100644 --- a/examples/plugins/websocketsrc/websocketsrc.go +++ b/examples/plugins/websocketsrc/websocketsrc.go @@ -3,11 +3,8 @@ // // In order to build the plugin for use by GStreamer, you can do the following: // -// $ go generate -// $ go build -o libgstwebsocketsrc.so -buildmode c-shared . -// -// -//go:generate gst-plugin-gen +// $ go generate +// $ go build -o libgstwebsocketsrc.so -buildmode c-shared . // // +plugin:Name=websocketsrc // +plugin:Description=GStreamer Websocket Source @@ -15,13 +12,15 @@ // +plugin:License=gst.LicenseLGPL // +plugin:Source=go-gst // +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 // // +element:Name=websocketsrc // +element:Rank=gst.RankNone // +element:Impl=websocketSrc // +element:Subclass=gst.ExtendsElement +// +//go:generate gst-plugin-gen package main import ( @@ -31,8 +30,8 @@ import ( "sync" "time" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" "golang.org/x/net/websocket" ) diff --git a/examples/queries/main.go b/examples/queries/main.go index c9755d7..7e7b54f 100644 --- a/examples/queries/main.go +++ b/examples/queries/main.go @@ -20,9 +20,9 @@ import ( "strings" "time" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) func queries(mainLoop *glib.MainLoop) error { diff --git a/examples/requestpad/main.go b/examples/requestpad/main.go index f532ce0..acec086 100644 --- a/examples/requestpad/main.go +++ b/examples/requestpad/main.go @@ -3,9 +3,9 @@ package main import ( "errors" "fmt" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" "os" "time" ) diff --git a/examples/tagsetter/main.go b/examples/tagsetter/main.go index e443bf8..650cb87 100644 --- a/examples/tagsetter/main.go +++ b/examples/tagsetter/main.go @@ -10,7 +10,7 @@ // that the example application will add tags to using GstTagsetter. // The operated pipeline looks like this: // -// {audiotestsrc} - {flacenc} - {filesink} +// {audiotestsrc} - {flacenc} - {filesink} // // For example for pipelines that transcode a multimedia file, the input // already has tags. For cases like this, the GstTagsetter has the merge @@ -25,8 +25,8 @@ import ( "fmt" "time" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) func tagsetter() error { diff --git a/examples/toc/main.go b/examples/toc/main.go index b240927..9790edf 100644 --- a/examples/toc/main.go +++ b/examples/toc/main.go @@ -6,10 +6,9 @@ // notify all elements in the pipeline when they encountered a ToC. // For this, the example operates the following pipeline: // -// /-{queue} - {fakesink} -// {filesrc} - {decodebin} - {queue} - {fakesink} -// \- ... -// +// /-{queue} - {fakesink} +// {filesrc} - {decodebin} - {queue} - {fakesink} +// \- ... package main import ( @@ -18,9 +17,9 @@ import ( "os" "time" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/examples" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/examples" + "github.com/go-gst/go-gst/gst" ) func tagsetter(mainLoop *glib.MainLoop) error { diff --git a/go.mod b/go.mod index 117c0df..e9a88e6 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,7 @@ -module github.com/tinyzimmer/go-gst +module github.com/go-gst/go-gst -go 1.16 +go 1.21 -require ( - github.com/mattn/go-pointer v0.0.1 - github.com/tinyzimmer/go-glib v0.0.25 -) +require github.com/mattn/go-pointer v0.0.1 + +require github.com/go-gst/go-glib v0.0.0-20230811085623-0abfebfabe3e diff --git a/go.sum b/go.sum index ad14e8f..c14ac36 100644 --- a/go.sum +++ b/go.sum @@ -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/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= diff --git a/gst/app/cgo_exports.go b/gst/app/cgo_exports.go index d26833f..1c0c3b8 100644 --- a/gst/app/cgo_exports.go +++ b/gst/app/cgo_exports.go @@ -5,9 +5,9 @@ import "C" import ( "unsafe" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" ) func getSinkCbsFromPtr(userData C.gpointer) *SinkCallbacks { diff --git a/gst/app/gst_app_sink.go b/gst/app/gst_app_sink.go index a78e331..7c07f18 100644 --- a/gst/app/gst_app_sink.go +++ b/gst/app/gst_app_sink.go @@ -24,8 +24,8 @@ import ( gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/base" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/base" ) // SinkCallbacks represents callbacks that can be installed on an app sink when data is available. diff --git a/gst/app/gst_app_src.go b/gst/app/gst_app_src.go index dbf7413..6a8a11d 100644 --- a/gst/app/gst_app_src.go +++ b/gst/app/gst_app_src.go @@ -21,9 +21,9 @@ import ( "time" "unsafe" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/base" 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. diff --git a/gst/app/wrappers.go b/gst/app/wrappers.go index 1d45b96..f109e70 100644 --- a/gst/app/wrappers.go +++ b/gst/app/wrappers.go @@ -4,8 +4,8 @@ package app import "C" import ( - "github.com/tinyzimmer/go-gst/gst" - "github.com/tinyzimmer/go-gst/gst/base" + "github.com/go-gst/go-gst/gst" + "github.com/go-gst/go-gst/gst/base" ) func wrapAppSink(elem *gst.Element) *Sink { diff --git a/gst/audio/gst_audio_buffer.go b/gst/audio/gst_audio_buffer.go index 95eeb3b..de72039 100644 --- a/gst/audio/gst_audio_buffer.go +++ b/gst/audio/gst_audio_buffer.go @@ -18,7 +18,7 @@ import "C" import ( "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. diff --git a/gst/audio/gst_audio_channels.go b/gst/audio/gst_audio_channels.go index a465938..5ffc7d0 100644 --- a/gst/audio/gst_audio_channels.go +++ b/gst/audio/gst_audio_channels.go @@ -5,6 +5,7 @@ package audio */ import "C" import ( + "math" "strings" "unsafe" ) diff --git a/gst/audio/gst_audio_format.go b/gst/audio/gst_audio_format.go index fee1779..6754874 100644 --- a/gst/audio/gst_audio_format.go +++ b/gst/audio/gst_audio_format.go @@ -8,8 +8,8 @@ import ( "math" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) func init() { diff --git a/gst/audio/gst_audio_info.go b/gst/audio/gst_audio_info.go index 2cf490e..610192d 100644 --- a/gst/audio/gst_audio_info.go +++ b/gst/audio/gst_audio_info.go @@ -14,7 +14,7 @@ import ( "runtime" "unsafe" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" ) // Flags contains extra audio flags diff --git a/gst/base/gst_base_sink.go b/gst/base/gst_base_sink.go index a738b36..16a2a49 100644 --- a/gst/base/gst_base_sink.go +++ b/gst/base/gst_base_sink.go @@ -16,8 +16,8 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) // GstBaseSink represents a GstBaseSink. diff --git a/gst/base/gst_base_sink_exports.go b/gst/base/gst_base_sink_exports.go index 7e67520..c0683cb 100644 --- a/gst/base/gst_base_sink_exports.go +++ b/gst/base/gst_base_sink_exports.go @@ -9,8 +9,8 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) //export goGstBaseSinkActivatePull diff --git a/gst/base/gst_base_sink_impl.go b/gst/base/gst_base_sink_impl.go index 44306bc..1d5e356 100644 --- a/gst/base/gst_base_sink_impl.go +++ b/gst/base/gst_base_sink_impl.go @@ -58,8 +58,8 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) var ( diff --git a/gst/base/gst_base_src.go b/gst/base/gst_base_src.go index 346fe43..1b24623 100644 --- a/gst/base/gst_base_src.go +++ b/gst/base/gst_base_src.go @@ -9,8 +9,8 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) // GstBaseSrc represents a GstBaseSrc. diff --git a/gst/base/gst_base_src_exports.go b/gst/base/gst_base_src_exports.go index ffe58ab..5721dd9 100644 --- a/gst/base/gst_base_src_exports.go +++ b/gst/base/gst_base_src_exports.go @@ -7,8 +7,8 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) //export goGstBaseSrcGetCaps diff --git a/gst/base/gst_base_src_impl.go b/gst/base/gst_base_src_impl.go index 062304e..fdfc67f 100644 --- a/gst/base/gst_base_src_impl.go +++ b/gst/base/gst_base_src_impl.go @@ -51,8 +51,8 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) var ( diff --git a/gst/base/gst_base_transform.go b/gst/base/gst_base_transform.go index 13caf2c..7198838 100644 --- a/gst/base/gst_base_transform.go +++ b/gst/base/gst_base_transform.go @@ -25,8 +25,8 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) // GstBaseTransformFlowDropped is a GstFlowReturn that can be returned from Transform() and TransformIP() diff --git a/gst/base/gst_base_transform_exports.go b/gst/base/gst_base_transform_exports.go index ef90fb6..b657285 100644 --- a/gst/base/gst_base_transform_exports.go +++ b/gst/base/gst_base_transform_exports.go @@ -8,8 +8,8 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) //export goGstBaseTransformAcceptCaps diff --git a/gst/base/gst_base_transform_impl.go b/gst/base/gst_base_transform_impl.go index e324801..91de4b0 100644 --- a/gst/base/gst_base_transform_impl.go +++ b/gst/base/gst_base_transform_impl.go @@ -55,8 +55,8 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) var ( diff --git a/gst/base/gst_collect_pads.go b/gst/base/gst_collect_pads.go index 139733f..bcb2ee9 100644 --- a/gst/base/gst_collect_pads.go +++ b/gst/base/gst_collect_pads.go @@ -62,7 +62,7 @@ import ( 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. diff --git a/gst/base/gst_collect_pads_exports.go b/gst/base/gst_collect_pads_exports.go index 1ca0e78..eb28af5 100644 --- a/gst/base/gst_collect_pads_exports.go +++ b/gst/base/gst_collect_pads_exports.go @@ -10,7 +10,7 @@ import ( gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" ) //export goGstCollectPadsBufferFunc diff --git a/gst/base/gst_flow_combiner.go b/gst/base/gst_flow_combiner.go index 4f84e38..11e5a57 100644 --- a/gst/base/gst_flow_combiner.go +++ b/gst/base/gst_flow_combiner.go @@ -8,7 +8,7 @@ import "C" import ( "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 diff --git a/gst/base/gst_push_src.go b/gst/base/gst_push_src.go index 980f989..25558ba 100644 --- a/gst/base/gst_push_src.go +++ b/gst/base/gst_push_src.go @@ -6,8 +6,8 @@ package base import "C" import ( - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) // GstPushSrc represents a GstBaseSrc. diff --git a/gst/base/gst_push_src_exports.go b/gst/base/gst_push_src_exports.go index 1c2fd28..dd19312 100644 --- a/gst/base/gst_push_src_exports.go +++ b/gst/base/gst_push_src_exports.go @@ -8,8 +8,8 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) //export goGstPushSrcAlloc diff --git a/gst/base/gst_push_src_impl.go b/gst/base/gst_push_src_impl.go index b794fdb..207b1b6 100644 --- a/gst/base/gst_push_src_impl.go +++ b/gst/base/gst_push_src_impl.go @@ -17,8 +17,8 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) var ( diff --git a/gst/base/gst_type_find.go b/gst/base/gst_type_find.go index 0806b0e..7c05bc7 100644 --- a/gst/base/gst_type_find.go +++ b/gst/base/gst_type_find.go @@ -10,7 +10,7 @@ import "C" import ( "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. diff --git a/gst/c_util.go b/gst/c_util.go index f8f6af4..084a836 100644 --- a/gst/c_util.go +++ b/gst/c_util.go @@ -9,7 +9,7 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) func toGObject(data unsafe.Pointer) *glib.Object { diff --git a/gst/cgo_exports.go b/gst/cgo_exports.go index 0c735ee..3a9243c 100644 --- a/gst/cgo_exports.go +++ b/gst/cgo_exports.go @@ -13,8 +13,8 @@ import ( "time" "unsafe" + "github.com/go-gst/go-glib/glib" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" ) //export goElementCallAsync diff --git a/gst/gst_allocator.go b/gst/gst_allocator.go index 1099f10..d1283fe 100644 --- a/gst/gst_allocator.go +++ b/gst/gst_allocator.go @@ -7,7 +7,7 @@ import ( "runtime" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // AllocationParams wraps the GstAllocationParams. diff --git a/gst/gst_bin.go b/gst/gst_bin.go index 1502b33..d1457c3 100644 --- a/gst/gst_bin.go +++ b/gst/gst_bin.go @@ -75,7 +75,7 @@ import ( "fmt" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Bin is a go wrapper arounds a GstBin. diff --git a/gst/gst_bin_exports.go b/gst/gst_bin_exports.go index 186bef5..e5c2b50 100644 --- a/gst/gst_bin_exports.go +++ b/gst/gst_bin_exports.go @@ -7,7 +7,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) func cbWrapBin(bin *C.GstBin) *Bin { diff --git a/gst/gst_bin_impl.go b/gst/gst_bin_impl.go index d319166..cca74bb 100644 --- a/gst/gst_bin_impl.go +++ b/gst/gst_bin_impl.go @@ -26,7 +26,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // ExtendsBin implements an Extendable object based on a GstBin. diff --git a/gst/gst_buffer.go b/gst/gst_buffer.go index 15ea9e8..4b2c2f6 100644 --- a/gst/gst_buffer.go +++ b/gst/gst_buffer.go @@ -27,8 +27,8 @@ import ( "time" "unsafe" + "github.com/go-gst/go-glib/glib" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" ) // GetMaxBufferMemory returns the maximum amount of memory a buffer can hold. @@ -120,16 +120,16 @@ func NewBufferFromReader(rdr io.Reader) (*Buffer, error) { // // The prefix/padding must be filled with 0 if flags contains MemoryFlagZeroPrefixed and MemoryFlagZeroPadded respectively. // -// // Example +// // Example // -// buf := gst.NewBufferFull(0, []byte("hello-world"), 1024, 0, 1024, func() { -// fmt.Println("buffer was destroyed") -// }) -// if buf != nil { -// buf.Unref() -// } +// buf := gst.NewBufferFull(0, []byte("hello-world"), 1024, 0, 1024, func() { +// fmt.Println("buffer was destroyed") +// }) +// if buf != nil { +// buf.Unref() +// } // -// // > buffer was destroyed +// // > buffer was destroyed func NewBufferFull(flags MemoryFlags, data []byte, maxSize, offset, size int64, notifyFunc func()) *Buffer { var notifyData unsafe.Pointer var gnotifyFunc C.GDestroyNotify @@ -228,27 +228,26 @@ func (b *Buffer) OffsetEnd() int64 { return int64(b.Instance().offset_end) } // parameters are passed to the MetaInfo's init function, and as such will only work // for MetaInfo objects created from the go runtime. // -// // Example +// // Example // -// metaInfo := gst.RegisterMeta(glib.TypeFromName("MyObjectType"), "my-meta", 1024, &gst.MetaInfoCallbackFuncs{ -// InitFunc: func(params interface{}, buffer *gst.Buffer) bool { -// paramStr := params.(string) -// fmt.Println("Buffer initialized with params:", paramStr) -// return true -// }, -// FreeFunc: func(buffer *gst.Buffer) { -// fmt.Println("Buffer was destroyed") -// }, -// }) +// metaInfo := gst.RegisterMeta(glib.TypeFromName("MyObjectType"), "my-meta", 1024, &gst.MetaInfoCallbackFuncs{ +// InitFunc: func(params interface{}, buffer *gst.Buffer) bool { +// paramStr := params.(string) +// fmt.Println("Buffer initialized with params:", paramStr) +// return true +// }, +// FreeFunc: func(buffer *gst.Buffer) { +// fmt.Println("Buffer was destroyed") +// }, +// }) // -// buf := gst.NewEmptyBuffer() -// buf.AddMeta(metaInfo, "hello world") +// buf := gst.NewEmptyBuffer() +// buf.AddMeta(metaInfo, "hello world") // -// buf.Unref() -// -// // > Buffer initialized with params: hello world -// // > Buffer was destroyed +// buf.Unref() // +// // > Buffer initialized with params: hello world +// // > Buffer was destroyed func (b *Buffer) AddMeta(info *MetaInfo, params interface{}) *Meta { meta := C.gst_buffer_add_meta(b.Instance(), info.Instance(), (C.gpointer)(gopointer.Save(params))) if meta == nil { diff --git a/gst/gst_buffer_pool.go b/gst/gst_buffer_pool.go index 004cea6..45c4c36 100644 --- a/gst/gst_buffer_pool.go +++ b/gst/gst_buffer_pool.go @@ -7,7 +7,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // BufferPool is a go wrapper around a GstBufferPool. diff --git a/gst/gst_bus.go b/gst/gst_bus.go index 8255549..06aa9c8 100644 --- a/gst/gst_bus.go +++ b/gst/gst_bus.go @@ -24,8 +24,8 @@ import ( "time" "unsafe" + "github.com/go-gst/go-glib/glib" 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 @@ -36,38 +36,37 @@ type Bus struct { // NewBus returns a new Bus instance. // -// // Example of using the bus instance +// // Example of using the bus instance // -// package main +// package main // -// import ( -// "fmt" +// import ( +// "fmt" // -// "github.com/tinyzimmer/go-gst/gst" -// ) +// "github.com/go-gst/go-gst/gst" +// ) // -// func main() { -// gst.Init(nil) +// func main() { +// gst.Init(nil) // -// bus := gst.NewBus() -// defer bus.Unref() +// bus := gst.NewBus() +// defer bus.Unref() // -// elem, err := gst.NewElement("fakesrc") -// if err != nil { -// panic(err) -// } -// defer elem.Unref() +// elem, err := gst.NewElement("fakesrc") +// if err != nil { +// panic(err) +// } +// defer elem.Unref() // -// bus.Post(gst.NewAsyncStartMessage(elem)) +// bus.Post(gst.NewAsyncStartMessage(elem)) // -// msg := bus.Pop() -// defer msg.Unref() +// msg := bus.Pop() +// defer msg.Unref() // -// fmt.Println(msg) -// } -// -// // > [fakesrc0] ASYNC-START - Async task started +// fmt.Println(msg) +// } // +// // > [fakesrc0] ASYNC-START - Async task started func NewBus() *Bus { 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 // 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 -// 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 // function may add a lot of complexity to your code through unexpected re-entrancy and unexpected changes to your // application's state. diff --git a/gst/gst_caps.go b/gst/gst_caps.go index 16dde4a..5c20434 100644 --- a/gst/gst_caps.go +++ b/gst/gst_caps.go @@ -17,8 +17,8 @@ import ( "runtime" "unsafe" + "github.com/go-gst/go-glib/glib" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" ) // TypeCaps is the static Glib Type for a GstCaps. @@ -67,27 +67,24 @@ type CapsMapFunc func(features *CapsFeatures, structure *Structure) bool // NewAnyCaps creates a new caps that indicate compatibility with any format. // -// caps := gst.NewAnyCaps() -// fmt.Println(caps.IsAny()) -// // true -// +// caps := gst.NewAnyCaps() +// fmt.Println(caps.IsAny()) +// // true 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 // NewAnyCamps. // -// caps := gst.NewEmptyCaps() -// fmt.Println(caps.IsEmpty()) -// // true -// +// caps := gst.NewEmptyCaps() +// fmt.Println(caps.IsEmpty()) +// // true func NewEmptyCaps() *Caps { return FromGstCapsUnsafeFull(unsafe.Pointer(C.gst_caps_new_empty())) } // NewEmptySimpleCaps returns a new empty caps object with the given media format. // -// caps := gst.NewEmptySimpleCaps("audio/x-raw") -// fmt.Println(caps.String()) -// // audio/x-raw -// +// caps := gst.NewEmptySimpleCaps("audio/x-raw") +// fmt.Println(caps.String()) +// // audio/x-raw func NewEmptySimpleCaps(mediaFormat string) *Caps { cFormat := C.CString(mediaFormat) defer C.free(unsafe.Pointer(cFormat)) @@ -106,10 +103,9 @@ func NewFullCaps(structures ...*Structure) *Caps { // NewCapsFromString creates a new Caps object from the given string. // -// caps := gst.NewCapsFromString("audio/x-raw, channels=2") -// fmt.Println(caps.String()) -// // audio/x-raw, channels=(int)2 -// +// caps := gst.NewCapsFromString("audio/x-raw, channels=2") +// fmt.Println(caps.String()) +// // audio/x-raw, channels=(int)2 func NewCapsFromString(capsStr string) *Caps { cStr := C.CString(capsStr) defer C.free(unsafe.Pointer(cStr)) @@ -206,21 +202,20 @@ func (c *Caps) CopyNth(n uint) *Caps { // In contrast to ForEach, the function may modify the structure and features. In contrast to MapInPlace, // the structure and features are removed from the caps if FALSE is returned from the function. The caps must be mutable. // -// caps := gst.NewCapsFromString("audio/x-raw") +// caps := gst.NewCapsFromString("audio/x-raw") // -// caps.FilterAndMapInPlace(func(features *gst.CapsFeatures, structure *gst.Structure) bool { -// if features.Contains(gst.CapsFeatureMemorySystemMemory) { -// fmt.Println("Removing system memory feature") -// return false -// } -// return true -// }) +// caps.FilterAndMapInPlace(func(features *gst.CapsFeatures, structure *gst.Structure) bool { +// if features.Contains(gst.CapsFeatureMemorySystemMemory) { +// fmt.Println("Removing system memory feature") +// return false +// } +// return true +// }) // -// fmt.Println(caps.IsEmpty()) -// -// // Removing system memory feature -// // true +// fmt.Println(caps.IsEmpty()) // +// // Removing system memory feature +// // true func (c *Caps) FilterAndMapInPlace(f CapsMapFunc) { ptr := gopointer.Save(f) defer gopointer.Unref(ptr) @@ -248,15 +243,14 @@ func (c *Caps) Fixate() *Caps { // ForEach calls the provided function once for each structure and caps feature in the GstCaps. The function must not // modify the fields. There is an unresolved bug in this function currently and it is better to use MapInPlace instead. // -// caps := gst.NewCapsFromString("audio/x-raw") +// caps := gst.NewCapsFromString("audio/x-raw") // -// caps.ForEach(func(features *gst.CapsFeatures, structure *gst.Structure) bool { -// fmt.Println(structure) -// return true -// }) -// -// // audio/x-raw; +// caps.ForEach(func(features *gst.CapsFeatures, structure *gst.Structure) bool { +// fmt.Println(structure) +// return true +// }) // +// // audio/x-raw; func (c *Caps) ForEach(f CapsMapFunc) bool { ptr := gopointer.Save(f) defer gopointer.Unref(ptr) diff --git a/gst/gst_caps_features.go b/gst/gst_caps_features.go index d23c17e..d589fea 100644 --- a/gst/gst_caps_features.go +++ b/gst/gst_caps_features.go @@ -6,7 +6,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Go casting of pre-baked caps features @@ -21,18 +21,16 @@ type CapsFeatures struct { // NewCapsFeaturesEmpty returns a new empty CapsFeatures. // -// feats := gst.NewCapsFeaturesEmpty() -// fmt.Println(feats.GetSize()) -// // 0 -// +// feats := gst.NewCapsFeaturesEmpty() +// fmt.Println(feats.GetSize()) +// // 0 func NewCapsFeaturesEmpty() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_features_new_empty()) } // NewCapsFeaturesAny returns a new ANY CapsFeatures. // -// feats := gst.NewCapsFeaturesAny() -// fmt.Println(feats.IsAny()) -// // true -// +// feats := gst.NewCapsFeaturesAny() +// fmt.Println(feats.IsAny()) +// // true func NewCapsFeaturesAny() *CapsFeatures { return wrapCapsFeatures(C.gst_caps_features_new_any()) } // NewCapsFeaturesFromString creates new CapsFeatures from the given string. @@ -71,31 +69,29 @@ func (c *CapsFeatures) Instance() *C.GstCapsFeatures { // String implements a stringer on caps features. // -// feats := gst.NewCapsFeaturesAny() -// fmt.Println(feats.String()) -// // ANY -// +// feats := gst.NewCapsFeaturesAny() +// fmt.Println(feats.String()) +// // ANY func (c *CapsFeatures) String() string { return C.GoString(C.gst_caps_features_to_string(c.Instance())) } // Add adds the given feature to these. // -// feats := gst.NewCapsFeaturesEmpty() +// feats := gst.NewCapsFeaturesEmpty() // -// fmt.Println(feats.GetSize()) +// fmt.Println(feats.GetSize()) // -// feats.Add(gst.CapsFeatureMemorySystemMemory) +// feats.Add(gst.CapsFeatureMemorySystemMemory) // -// fmt.Println(feats.GetSize()) -// fmt.Println(feats.Contains(gst.CapsFeatureMemorySystemMemory)) -// fmt.Println(feats.GetNth(0)) -// -// // 0 -// // 1 -// // true -// // memory:SystemMemory +// fmt.Println(feats.GetSize()) +// fmt.Println(feats.Contains(gst.CapsFeatureMemorySystemMemory)) +// fmt.Println(feats.GetNth(0)) // +// // 0 +// // 1 +// // true +// // memory:SystemMemory func (c *CapsFeatures) Add(feature string) { cStr := C.CString(feature) defer C.free(unsafe.Pointer(cStr)) diff --git a/gst/gst_child_proxy.go b/gst/gst_child_proxy.go index 0003b5c..3c85560 100644 --- a/gst/gst_child_proxy.go +++ b/gst/gst_child_proxy.go @@ -21,7 +21,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // InterfaceChildProxy represents the GstChildProxy interface. Use this when querying bins diff --git a/gst/gst_child_proxy_exports.go b/gst/gst_child_proxy_exports.go index 2347c8d..33b70ad 100644 --- a/gst/gst_child_proxy_exports.go +++ b/gst/gst_child_proxy_exports.go @@ -7,7 +7,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) func wrapParent(parent *C.GstChildProxy) *ChildProxy { return &ChildProxy{ptr: parent} } diff --git a/gst/gst_clock.go b/gst/gst_clock.go index 4f45ad1..fc17f3d 100644 --- a/gst/gst_clock.go +++ b/gst/gst_clock.go @@ -24,8 +24,8 @@ import ( "time" "unsafe" + "github.com/go-gst/go-glib/glib" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" ) // ClockCallback is the prototype of a clock callback function. @@ -80,25 +80,25 @@ func (c *ClockID) Wait() (ret ClockReturn, jitter ClockTimeDiff) { // // The callback func can be invoked from any thread, either provided by the core or from a streaming thread. The application should be prepared for this. // -// // Example +// // Example // -// pipeline, _ := gst.NewPipelineFromString("fakesrc ! fakesink") -// defer pipeline.Unref() +// pipeline, _ := gst.NewPipelineFromString("fakesrc ! fakesink") +// defer pipeline.Unref() // -// clock := pipeline.GetPipelineClock() +// clock := pipeline.GetPipelineClock() // -// id := clock.NewSingleShotID(gst.ClockTime(1000000000)) // 1 second +// id := clock.NewSingleShotID(gst.ClockTime(1000000000)) // 1 second // -// id.WaitAsync(func(clock *gst.Clock, clockTime time.Duration) bool { -// fmt.Println("Single shot triggered at", clockTime.Nanoseconds()) -// pipeline.SetState(gst.StateNull) -// return true -// }) +// id.WaitAsync(func(clock *gst.Clock, clockTime time.Duration) bool { +// fmt.Println("Single shot triggered at", clockTime.Nanoseconds()) +// pipeline.SetState(gst.StateNull) +// return true +// }) // -// pipeline.SetState(gst.StatePlaying) -// gst.Wait(pipeline) +// pipeline.SetState(gst.StatePlaying) +// gst.Wait(pipeline) // -// // Single shot triggered at 1000000000 +// // Single shot triggered at 1000000000 func (c *ClockID) WaitAsync(f ClockCallback) ClockReturn { ptr := gopointer.Save(f) return ClockReturn(C.gst_clock_id_wait_async( @@ -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 -/// modify the reference count. +// / modify the reference count. func (c *Clock) PeriodicIDReinit(clockID *ClockID, startTime, interval time.Duration) bool { return gobool(C.gst_clock_periodic_id_reinit( c.Instance(), diff --git a/gst/gst_device.go b/gst/gst_device.go index 04c3281..fc9dc2c 100644 --- a/gst/gst_device.go +++ b/gst/gst_device.go @@ -8,7 +8,7 @@ import ( "strings" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Device is a Go representation of a GstDevice. diff --git a/gst/gst_element.go b/gst/gst_element.go index bc3c679..b192ccb 100644 --- a/gst/gst_element.go +++ b/gst/gst_element.go @@ -38,8 +38,8 @@ import ( "runtime" "unsafe" + "github.com/go-gst/go-glib/glib" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" ) // Element is a Go wrapper around a GstElement. @@ -507,15 +507,16 @@ func (e *Element) RemovePad(pad *Pad) bool { // For example, audiomixer has sink template, 'sink_%u', which is used for creating multiple sink pads on demand so that it performs mixing of audio streams by linking multiple upstream elements on it's sink pads created on demand. // This returns the request pad created on demand. Otherwise, it returns null if failed to create. func (e *Element) GetRequestPad(name string) *Pad { - cname := C.CString(name) - defer C.free(unsafe.Pointer(cname)) - pad := C.gst_element_get_request_pad(e.Instance(), (*C.gchar)(unsafe.Pointer(cname))) - if pad == nil { - return nil - } - return FromGstPadUnsafeFull(unsafe.Pointer(pad)) + cname := C.CString(name) + defer C.free(unsafe.Pointer(cname)) + pad := C.gst_element_get_request_pad(e.Instance(), (*C.gchar)(unsafe.Pointer(cname))) + if pad == nil { + return nil + } + return FromGstPadUnsafeFull(unsafe.Pointer(pad)) } + // ReleaseRequestPad releases request 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()) } diff --git a/gst/gst_element_class.go b/gst/gst_element_class.go index 5281168..1cbc076 100644 --- a/gst/gst_element_class.go +++ b/gst/gst_element_class.go @@ -7,7 +7,7 @@ import "C" import ( "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. diff --git a/gst/gst_element_exports.go b/gst/gst_element_exports.go index 33b1885..1e63f03 100644 --- a/gst/gst_element_exports.go +++ b/gst/gst_element_exports.go @@ -9,7 +9,7 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) //export goGstElementClassChangeState diff --git a/gst/gst_element_factory.go b/gst/gst_element_factory.go index c607e89..e5fa713 100644 --- a/gst/gst_element_factory.go +++ b/gst/gst_element_factory.go @@ -7,7 +7,7 @@ import ( "fmt" "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. diff --git a/gst/gst_element_impl.go b/gst/gst_element_impl.go index 086d9ff..c216a38 100644 --- a/gst/gst_element_impl.go +++ b/gst/gst_element_impl.go @@ -43,7 +43,7 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // ExtendsElement implements an Extendable object based on a GstElement. diff --git a/gst/gst_ghost_pad.go b/gst/gst_ghost_pad.go index 2a26306..24c07ab 100644 --- a/gst/gst_ghost_pad.go +++ b/gst/gst_ghost_pad.go @@ -6,7 +6,7 @@ import ( "runtime" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // GhostPad is a go representation of a GstGhostPad. diff --git a/gst/gst_memory.go b/gst/gst_memory.go index 9c0916f..61c06b1 100644 --- a/gst/gst_memory.go +++ b/gst/gst_memory.go @@ -9,7 +9,7 @@ import ( "runtime" "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 diff --git a/gst/gst_message.go b/gst/gst_message.go index 4d1c486..814fcaa 100644 --- a/gst/gst_message.go +++ b/gst/gst_message.go @@ -9,7 +9,7 @@ import ( "time" "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 diff --git a/gst/gst_message_constructors.go b/gst/gst_message_constructors.go index c53b834..5d6508c 100644 --- a/gst/gst_message_constructors.go +++ b/gst/gst_message_constructors.go @@ -6,7 +6,7 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) func getMessageSourceObj(src interface{}) *C.GstObject { diff --git a/gst/gst_meta.go b/gst/gst_meta.go index b26c6cd..cbdc6eb 100644 --- a/gst/gst_meta.go +++ b/gst/gst_meta.go @@ -27,7 +27,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Meta is a go representation of GstMeta. diff --git a/gst/gst_mini_object.go b/gst/gst_mini_object.go index eefaf9f..e8d9d27 100644 --- a/gst/gst_mini_object.go +++ b/gst/gst_mini_object.go @@ -6,7 +6,7 @@ import "C" import ( "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 diff --git a/gst/gst_object.go b/gst/gst_object.go index 475af4d..54098e1 100644 --- a/gst/gst_object.go +++ b/gst/gst_object.go @@ -7,7 +7,7 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Object is a go representation of a GstObject. diff --git a/gst/gst_pad.go b/gst/gst_pad.go index 98defbe..7fbd590 100644 --- a/gst/gst_pad.go +++ b/gst/gst_pad.go @@ -83,8 +83,8 @@ import ( "errors" "unsafe" + "github.com/go-gst/go-glib/glib" 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. diff --git a/gst/gst_pad_exports.go b/gst/gst_pad_exports.go index edc9512..1d81230 100644 --- a/gst/gst_pad_exports.go +++ b/gst/gst_pad_exports.go @@ -7,8 +7,8 @@ import "C" import ( "unsafe" + "github.com/go-gst/go-glib/glib" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" ) func getParent(parent *C.GstObject) *Object { diff --git a/gst/gst_pad_template.go b/gst/gst_pad_template.go index e298847..5f3a5ae 100644 --- a/gst/gst_pad_template.go +++ b/gst/gst_pad_template.go @@ -5,7 +5,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // PadTemplate is a go representation of a GstPadTemplate diff --git a/gst/gst_pipeline.go b/gst/gst_pipeline.go index 9e5b618..2e7c8a3 100644 --- a/gst/gst_pipeline.go +++ b/gst/gst_pipeline.go @@ -9,7 +9,7 @@ import ( "strings" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Pipeline is a go implementation of a GstPipeline. diff --git a/gst/gst_plugin.go b/gst/gst_plugin.go index 64ee0bf..8e982ae 100644 --- a/gst/gst_plugin.go +++ b/gst/gst_plugin.go @@ -53,8 +53,8 @@ import ( "errors" "unsafe" + "github.com/go-gst/go-glib/glib" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" ) // PluginMetadata represents the information to include when registering a new plugin diff --git a/gst/gst_query.go b/gst/gst_query.go index bda3d0f..dda1067 100644 --- a/gst/gst_query.go +++ b/gst/gst_query.go @@ -7,7 +7,7 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Query is a go wrapper around a GstQuery. diff --git a/gst/gst_registry.go b/gst/gst_registry.go index df089be..46399c4 100644 --- a/gst/gst_registry.go +++ b/gst/gst_registry.go @@ -7,7 +7,7 @@ import ( "fmt" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Registry is a go representation of a GstRegistry. diff --git a/gst/gst_stream.go b/gst/gst_stream.go index 392b2f7..6c486c2 100644 --- a/gst/gst_stream.go +++ b/gst/gst_stream.go @@ -6,7 +6,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // Stream is a Go representation of a GstStream. diff --git a/gst/gst_stream_collection.go b/gst/gst_stream_collection.go index 4a5b323..71aa135 100644 --- a/gst/gst_stream_collection.go +++ b/gst/gst_stream_collection.go @@ -7,7 +7,7 @@ import ( "fmt" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // StreamCollection is a Go representation of a GstStreamCollection. diff --git a/gst/gst_structure.go b/gst/gst_structure.go index 99e2e35..58e89d8 100644 --- a/gst/gst_structure.go +++ b/gst/gst_structure.go @@ -20,8 +20,8 @@ import ( "sync" "unsafe" + "github.com/go-gst/go-glib/glib" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-glib/glib" ) // Structure is a go implementation of a C GstStructure. diff --git a/gst/gst_tag_list.go b/gst/gst_tag_list.go index 3c42624..718623c 100644 --- a/gst/gst_tag_list.go +++ b/gst/gst_tag_list.go @@ -18,8 +18,8 @@ import ( "time" "unsafe" + "github.com/go-gst/go-glib/glib" 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 @@ -47,10 +47,9 @@ func FromGstTagListUnsafeFull(tags unsafe.Pointer) *TagList { // NewEmptyTagList returns a new empty tag list. // -// tagList := gst.NewEmptyTagList() -// fmt.Println(tagList.IsEmpty()) -// // true -// +// tagList := gst.NewEmptyTagList() +// fmt.Println(tagList.IsEmpty()) +// // true func NewEmptyTagList() *TagList { return FromGstTagListUnsafeFull(unsafe.Pointer(C.gst_tag_list_new_empty())) } @@ -83,12 +82,11 @@ func (t *TagList) Unref() { C.gst_tag_list_unref(t.Instance()) } // AddValue adds a value to a given tag using the given merge mode. If the value provided // cannot be coerced to a GValue, nothing will happen. // -// tagList := gst.NewEmptyTagList() -// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbum, "MyNewAlbum") -// myAlbum, _ := tagList.GetString(gst.TagAlbum) -// fmt.Println(myAlbum) -// // MyNewAlbum -// +// tagList := gst.NewEmptyTagList() +// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbum, "MyNewAlbum") +// myAlbum, _ := tagList.GetString(gst.TagAlbum) +// fmt.Println(myAlbum) +// // MyNewAlbum func (t *TagList) AddValue(mergeMode TagMergeMode, tag Tag, value interface{}) { ctag := C.CString(string(tag)) defer C.free(unsafe.Pointer(ctag)) @@ -129,19 +127,18 @@ type TagListForEachFunc func(tagList *TagList, tag Tag) // ForEach calls the given function for each tag inside the tag list. Note that if there is no tag, // the function won't be called at all. // -// tagList := gst.NewEmptyTagList() +// tagList := gst.NewEmptyTagList() // -// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbumArtist, "tinyzimmer") -// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbum, "GstreamerInGo") +// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbumArtist, "tinyzimmer") +// tagList.AddValue(gst.TagMergeAppend, gst.TagAlbum, "GstreamerInGo") // -// tagList.ForEach(func(_ *gst.TagList, tag gst.Tag) { -// val, _ := tagList.GetString(tag) -// fmt.Println(tag, ":", val) -// }) -// -// // album-artist : tinyzimmer -// // album : GstreamerInGo +// tagList.ForEach(func(_ *gst.TagList, tag gst.Tag) { +// val, _ := tagList.GetString(tag) +// fmt.Println(tag, ":", val) +// }) // +// // album-artist : tinyzimmer +// // album : GstreamerInGo func (t *TagList) ForEach(f TagListForEachFunc) { ptr := gopointer.Save(f) defer gopointer.Unref(ptr) diff --git a/gst/gst_tag_setter.go b/gst/gst_tag_setter.go index 7cc405a..6d1c15e 100644 --- a/gst/gst_tag_setter.go +++ b/gst/gst_tag_setter.go @@ -5,7 +5,7 @@ import "C" import ( "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 diff --git a/gst/gst_toc_setter.go b/gst/gst_toc_setter.go index 04b35f3..1251c14 100644 --- a/gst/gst_toc_setter.go +++ b/gst/gst_toc_setter.go @@ -5,7 +5,7 @@ import "C" import ( "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 diff --git a/gst/gst_uri_handler.go b/gst/gst_uri_handler.go index b631a7f..1642414 100644 --- a/gst/gst_uri_handler.go +++ b/gst/gst_uri_handler.go @@ -23,7 +23,7 @@ import ( "errors" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) var globalURIHdlr URIHandler diff --git a/gst/gst_uri_handler_exports.go b/gst/gst_uri_handler_exports.go index 25cf10d..bf0e775 100644 --- a/gst/gst_uri_handler_exports.go +++ b/gst/gst_uri_handler_exports.go @@ -9,7 +9,7 @@ import ( "math" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) //export goURIHdlrGetURIType diff --git a/gst/gst_values.go b/gst/gst_values.go index 32463a2..22ed2b5 100644 --- a/gst/gst_values.go +++ b/gst/gst_values.go @@ -27,7 +27,7 @@ import ( "fmt" "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) // ValuesCanCompare determines if val1 and val2 can be compared. diff --git a/gst/gst_wrappers.go b/gst/gst_wrappers.go index 316a7df..41a6a1e 100644 --- a/gst/gst_wrappers.go +++ b/gst/gst_wrappers.go @@ -8,7 +8,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" + "github.com/go-gst/go-glib/glib" ) func init() { registerMarshalers() } diff --git a/gst/gstnet/net_address_meta.go b/gst/gstnet/net_address_meta.go index aefee05..a6a6de5 100644 --- a/gst/gstnet/net_address_meta.go +++ b/gst/gstnet/net_address_meta.go @@ -6,7 +6,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" ) // NetAddressMeta can be used to store a network address in a GstBuffer so that it network elements diff --git a/gst/pbutils/discoverer.go b/gst/pbutils/discoverer.go index e5b3c4d..fb66b30 100644 --- a/gst/pbutils/discoverer.go +++ b/gst/pbutils/discoverer.go @@ -9,8 +9,8 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) func init() { diff --git a/gst/rtp/gst_rtp_meta.go b/gst/rtp/gst_rtp_meta.go index ca542c1..5710fca 100644 --- a/gst/rtp/gst_rtp_meta.go +++ b/gst/rtp/gst_rtp_meta.go @@ -8,8 +8,8 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) // MaxCSRCCount is the maximum number of elements that can be added to a CSRC. diff --git a/gst/video/c_util.go b/gst/video/c_util.go index 1d7ec2a..4e8c0bc 100644 --- a/gst/video/c_util.go +++ b/gst/video/c_util.go @@ -12,7 +12,7 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" ) func uintptrToGVal(p uintptr) *C.GValue { return (*C.GValue)(C.videoUtilToGValue(C.guintptr(p))) } diff --git a/gst/video/cgo_exports.go b/gst/video/cgo_exports.go index 700f2f7..dada5de 100644 --- a/gst/video/cgo_exports.go +++ b/gst/video/cgo_exports.go @@ -8,8 +8,8 @@ import "C" import ( "unsafe" + "github.com/go-gst/go-gst/gst" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-gst/gst" ) //export goVideoGDestroyNotifyFunc diff --git a/gst/video/convert_frame.go b/gst/video/convert_frame.go index 18ff5a8..e974795 100644 --- a/gst/video/convert_frame.go +++ b/gst/video/convert_frame.go @@ -22,8 +22,8 @@ import ( "time" "unsafe" + "github.com/go-gst/go-gst/gst" gopointer "github.com/mattn/go-pointer" - "github.com/tinyzimmer/go-gst/gst" ) // ConvertSampleCallback represents a callback from a video convert opereration. diff --git a/gst/video/gst_color_balance.go b/gst/video/gst_color_balance.go index 8aa2e83..b516224 100644 --- a/gst/video/gst_color_balance.go +++ b/gst/video/gst_color_balance.go @@ -14,8 +14,8 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) // ColorBalanceType is an enumeration indicating whether an element implements color diff --git a/gst/video/gst_meta.go b/gst/video/gst_meta.go index 4da4960..c129b78 100644 --- a/gst/video/gst_meta.go +++ b/gst/video/gst_meta.go @@ -9,7 +9,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" ) // CropMetaInfo contains extra buffer metadata describing image cropping. diff --git a/gst/video/gst_navigation.go b/gst/video/gst_navigation.go index 8d0e4b1..e937b38 100644 --- a/gst/video/gst_navigation.go +++ b/gst/video/gst_navigation.go @@ -13,7 +13,7 @@ import "C" import ( "unsafe" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" ) // NavigationCommand is a set of commands that may be issued to an element providing the @@ -115,20 +115,18 @@ mouse button presses, cursor motion and key presses. The associated library also methods for parsing received events, and for sending and receiving navigation related bus events. One main use-case is DVD menu navigation. + The main parts of the API are: - The main parts of the API are: + - The Navigation interface, implemented by elements which provide an application with + the ability to create and inject navigation events into the pipeline. - - The Navigation interface, implemented by elements which provide an application with - the ability to create and inject navigation events into the pipeline. - - - Navigation event handling API. Navigation events are created in response to calls - on a Navigation interface implementation, and sent in the pipeline. Upstream elements - can use the navigation event API functions to parse the contents of received messages. - - - Navigation message handling API. Navigation messages may be sent on the message bus - to inform applications of navigation related changes in the pipeline, such as the mouse - moving over a clickable region, or the set of available angles changing. + - Navigation event handling API. Navigation events are created in response to calls + on a Navigation interface implementation, and sent in the pipeline. Upstream elements + can use the navigation event API functions to parse the contents of received messages. + - Navigation message handling API. Navigation messages may be sent on the message bus + to inform applications of navigation related changes in the pipeline, such as the mouse + moving over a clickable region, or the set of available angles changing. The Navigation message functions provide functions for creating and parsing custom bus messages for signaling GstNavigation changes. diff --git a/gst/video/gst_video.go b/gst/video/gst_video.go index 6789308..4799faf 100644 --- a/gst/video/gst_video.go +++ b/gst/video/gst_video.go @@ -8,7 +8,7 @@ import ( "time" "unsafe" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" ) // OrientationMethod represents the different video orientation methods. diff --git a/gst/video/gst_video_format.go b/gst/video/gst_video_format.go index ede62d9..ff132b3 100644 --- a/gst/video/gst_video_format.go +++ b/gst/video/gst_video_format.go @@ -36,8 +36,8 @@ import ( "runtime" "unsafe" - "github.com/tinyzimmer/go-glib/glib" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-glib/glib" + "github.com/go-gst/go-gst/gst" ) func init() { diff --git a/gst/video/gst_video_info.go b/gst/video/gst_video_info.go index 5e3188c..db6429e 100644 --- a/gst/video/gst_video_info.go +++ b/gst/video/gst_video_info.go @@ -38,7 +38,7 @@ import ( "runtime" "unsafe" - "github.com/tinyzimmer/go-gst/gst" + "github.com/go-gst/go-gst/gst" ) // CapsFeatureFormatInterlaced is the name of the caps feature indicating that the stream is interlaced.