From be723a423e7fa644c88a9b2d3ca985b60dad1135 Mon Sep 17 00:00:00 2001 From: tinyzimmer <38474291+tinyzimmer@users.noreply.github.com> Date: Mon, 5 Oct 2020 11:32:17 +0300 Subject: [PATCH] send message instead --- examples/gif-encoder/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gif-encoder/main.go b/examples/gif-encoder/main.go index 15c5955..252e5dd 100644 --- a/examples/gif-encoder/main.go +++ b/examples/gif-encoder/main.go @@ -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