mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-04 15:42:52 +08:00
major move of all glib specific bindings and extendable objects from go runtime to go-glib package
This commit is contained in:
@@ -38,6 +38,7 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/tinyzimmer/go-glib/glib"
|
||||
"github.com/tinyzimmer/go-gst/examples"
|
||||
"github.com/tinyzimmer/go-gst/gst"
|
||||
)
|
||||
@@ -152,7 +153,7 @@ func buildPipeline() (*gst.Pipeline, error) {
|
||||
return pipeline, nil
|
||||
}
|
||||
|
||||
func runPipeline(loop *gst.MainLoop, pipeline *gst.Pipeline) error {
|
||||
func runPipeline(loop *glib.MainLoop, pipeline *gst.Pipeline) error {
|
||||
// Start the pipeline
|
||||
pipeline.SetState(gst.StatePlaying)
|
||||
// Stop and cleanup the pipeline when we exit
|
||||
@@ -196,7 +197,7 @@ func main() {
|
||||
flag.Usage()
|
||||
os.Exit(1)
|
||||
}
|
||||
examples.RunLoop(func(loop *gst.MainLoop) error {
|
||||
examples.RunLoop(func(loop *glib.MainLoop) error {
|
||||
pipeline, err := buildPipeline()
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user