mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-01 06:12:07 +08:00
add custom transform example and remove calls to deprecated methods
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package customtransform
|
||||
|
||||
import (
|
||||
"github.com/go-gst/go-gst/gst"
|
||||
"github.com/go-gst/go-gst/gst/base"
|
||||
)
|
||||
|
||||
// Register needs to be called after gst.Init() to make the gocustombin available in the standard
|
||||
// gst element registry. After this call the element can be used like any other gstreamer element
|
||||
func Register() bool {
|
||||
return gst.RegisterElement(
|
||||
// no plugin:
|
||||
nil,
|
||||
// The name of the element
|
||||
"gocustomtransform",
|
||||
// The rank of the element
|
||||
gst.RankNone,
|
||||
// The GoElement implementation for the element
|
||||
&customBaseTransform{},
|
||||
// The base subclass this element extends
|
||||
base.ExtendsBaseTransform,
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user