diff --git a/examples/gif-encoder/main.go b/examples/gif-encoder/main.go index af71600..0e7e58d 100644 --- a/examples/gif-encoder/main.go +++ b/examples/gif-encoder/main.go @@ -61,6 +61,9 @@ func encodeGif(mainLoop *gst.MainLoop) error { // Build out the rest of the elements for the pipeline pipeline. elements, err := gst.NewElementMany("queue", "videoconvert", "videoscale", "videorate", "jpegenc") if err != nil { + // The Bus PostError method is a convenient wrapper for building rich messages and sending them + // down the pipeline. The below call will create a new error message, populate the debug info + // with a stack trace from this goroutine, and add additional details from the provided error. pipeline.GetPipelineBus().PostError(self, "Failed to build elements for the linked pipeline", err) return }