mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 07:56:51 +08:00
pull in updated glib bindings, element class fixes, update examples
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user