mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 00:17:00 +08:00
major rework of reference handling
This commit is contained in:
@@ -156,8 +156,6 @@ func buildPipeline() (*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
|
||||
defer pipeline.Destroy()
|
||||
|
||||
// Add a message watch to the bus to quit on any error
|
||||
pipeline.GetPipelineBus().AddWatch(func(msg *gst.Message) bool {
|
||||
|
Reference in New Issue
Block a user