cleanup gif example a bit more

This commit is contained in:
tinyzimmer
2020-10-05 11:40:19 +03:00
parent 50157cd41c
commit 3029b991e9

View File

@@ -131,7 +131,7 @@ func encodeGif(mainLoop *gst.MainLoop) error {
fmt.Println("Could not encode images to gif format!", err) fmt.Println("Could not encode images to gif format!", err)
} }
// Signal the pipeline that we've completed EOS // Signal the pipeline that we've completed EOS
pipeline.GetPipelineBus().Post(gst.NewEOSMessage(appSink)) // pipeline.GetPipelineBus().Post(gst.NewEOSMessage(appSink))
}, },
NewSampleFunc: func(sink *app.Sink) gst.FlowReturn { NewSampleFunc: func(sink *app.Sink) gst.FlowReturn {
// Increment the frame number counter // Increment the frame number counter