mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 16:06:55 +08:00
pull in upstream interface improvements and add a few more gstreamer interfaces
This commit is contained in:
27
examples/plugins/gobin/gobin.go
Normal file
27
examples/plugins/gobin/gobin.go
Normal file
@@ -0,0 +1,27 @@
|
||||
//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:ReleaseDate=2021-01-18
|
||||
//
|
||||
// +element:Name=gobin
|
||||
// +element:Rank=gst.RankNone
|
||||
// +element:Impl=gobin
|
||||
// +element:Subclass=gst.ExtendsBin
|
||||
//
|
||||
package main
|
||||
|
||||
import "github.com/tinyzimmer/go-glib/glib"
|
||||
|
||||
func main() {}
|
||||
|
||||
type gobin struct{}
|
||||
|
||||
func (g *gobin) New() glib.GoObjectSubclass { return &gobin{} }
|
||||
|
||||
func (g *gobin) ClassInit(klass *glib.ObjectClass) {}
|
Reference in New Issue
Block a user