pull in updated glib bindings, element class fixes, update examples

This commit is contained in:
Avi Zimmerman
2021-01-19 17:40:24 +02:00
parent 9110b5dbdc
commit 4ec72c3608
6 changed files with 21 additions and 27 deletions

View File

@@ -132,9 +132,10 @@ func handleMessage(msg *gst.Message) error {
func mainLoop(loop *glib.MainLoop, pipeline *gst.Pipeline) error {
// Start the pipeline
// Due to recent changes in the pipeline - the finalizers might fire on the pipeline
// Due to recent changes in the bindings - the finalizers might fire on the pipeline
// prematurely when it's passed between scopes. So when you do this, it is safer to
// take a reference that you dispose of when you are done.
// take a reference that you dispose of when you are done. There is an alternative
// to this method in other examples.
pipeline.Ref()
defer pipeline.Unref()