mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-04 23:52:55 +08:00
pull in upstream interface improvements and add a few more gstreamer interfaces
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
// +element:Rank=gst.RankNone
|
||||
// +element:Impl=fileSink
|
||||
// +element:Subclass=base.ExtendsBaseSink
|
||||
// +element:Interfaces=gst.InterfaceURIHandler
|
||||
//
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -119,13 +121,6 @@ func (f *fileSink) New() glib.GoObjectSubclass {
|
||||
}
|
||||
}
|
||||
|
||||
// The TypeInit method should register any additional interfaces provided by the element.
|
||||
// In this example we signal to the type system that we also implement the GstURIHandler interface.
|
||||
func (f *fileSink) TypeInit(instance *glib.TypeInstance) {
|
||||
CAT.Log(gst.LevelLog, "Adding URIHandler interface to type")
|
||||
instance.AddInterface(gst.InterfaceURIHandler)
|
||||
}
|
||||
|
||||
// The ClassInit method should specify the metadata for this element and add any pad templates
|
||||
// and properties.
|
||||
func (f *fileSink) ClassInit(klass *glib.ObjectClass) {
|
||||
|
Reference in New Issue
Block a user