major move of all glib specific bindings and extendable objects from go runtime to go-glib package

This commit is contained in:
Avi Zimmerman
2021-01-17 18:42:14 +02:00
parent d5306ebb3e
commit 56afdb35c0
61 changed files with 286 additions and 2614 deletions

View File

@@ -24,11 +24,12 @@ import (
"fmt"
"time"
"github.com/tinyzimmer/go-glib/glib"
"github.com/tinyzimmer/go-gst/examples"
"github.com/tinyzimmer/go-gst/gst"
)
func runPipeline(loop *gst.MainLoop) error {
func runPipeline(loop *glib.MainLoop) error {
gst.Init(nil)
// Build a pipeline with fake audio data going to a fakesink
@@ -109,7 +110,7 @@ func runPipeline(loop *gst.MainLoop) error {
}
func main() {
examples.RunLoop(func(loop *gst.MainLoop) error {
examples.RunLoop(func(loop *glib.MainLoop) error {
return runPipeline(loop)
})
}