major rework of reference handling

This commit is contained in:
Avi Zimmerman
2021-01-19 00:18:30 +02:00
parent 63a53be42a
commit 1f7d60b390
79 changed files with 1239 additions and 800 deletions

View File

@@ -99,13 +99,9 @@ func runPipeline(loop *glib.MainLoop) error {
// Remove the watch function from the bus.
// Again: There can always only be one watch function.
// Thus we don't have to tell him which function to remove.
// Thus we don't have to tell it which function to remove.
bus.RemoveWatch()
// Unref the pipeline because we are done with it. The combination of setting
// the state to NULL and unreffing is the semantic equivalent to calling Destroy().
pipeline.Unref()
return nil
}