From 121a651b7f699fd0809ae2b9fb1d6ae7321e2bb0 Mon Sep 17 00:00:00 2001 From: tinyzimmer <38474291+tinyzimmer@users.noreply.github.com> Date: Mon, 5 Oct 2020 09:47:59 +0300 Subject: [PATCH] commit custom events the way it should look --- examples/custom_events/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/custom_events/main.go b/examples/custom_events/main.go index 1343d37..1909441 100644 --- a/examples/custom_events/main.go +++ b/examples/custom_events/main.go @@ -58,7 +58,7 @@ func createPipeline() (*gst.Pipeline, error) { fmt.Printf("Received custom event with count=%d send_eos=%v\n", customEvent.Count, customEvent.SendEOS) if customEvent.SendEOS { fmt.Println("Send EOS is true, sending eos") - if !pipeline.GetPipelineBus().Post(gst.NewEOSMessage(self)) { + if !pipeline.SendEvent(gst.NewEOSEvent()) { fmt.Println("WARNING: Failed to send EOS to pipeline") } } else {