mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 16:06:55 +08:00
send message instead
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user