mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 00:17:00 +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 {
|
if err := gif.EncodeAll(file, outGif); err != nil {
|
||||||
fmt.Println("Could not encode images to gif format!", err)
|
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 {
|
NewSampleFunc: func(sink *app.Sink) gst.FlowReturn {
|
||||||
// Increment the frame number counter
|
// Increment the frame number counter
|
||||||
|
Reference in New Issue
Block a user