add callasync and clean up examples

This commit is contained in:
tinyzimmer
2020-10-05 11:13:50 +03:00
parent 121a651b7f
commit ebdff9159c
5 changed files with 93 additions and 10 deletions

View File

@@ -53,6 +53,7 @@ func createPipeline() (*gst.Pipeline, error) {
if sample == nil {
return gst.FlowEOS
}
defer sample.Unref()
// Retrieve the buffer from the sample
buffer := sample.GetBuffer()