send message instead

This commit is contained in:
tinyzimmer
2020-10-05 11:32:17 +03:00
parent 6c755dd573
commit be723a423e

View File

@@ -126,7 +126,7 @@ func encodeGif(mainLoop *gst.MainLoop) error {
if err := gif.EncodeAll(file, outGif); err != nil {
fmt.Println("Could not encode images to gif format!", err)
}
mainLoop.Quit()
pipeline.GetPipelineBus().Post(gst.NewEOSMessage(appSink))
},
NewSampleFunc: func(sink *app.Sink) gst.FlowReturn {
// Increment the frame number counter