From c41729e844cb5d38e3effe3ff884ddc7e49bc74a Mon Sep 17 00:00:00 2001 From: tinyzimmer <38474291+tinyzimmer@users.noreply.github.com> Date: Sun, 4 Oct 2020 17:09:30 +0300 Subject: [PATCH] tidying --- examples/gif-encoder/main.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/examples/gif-encoder/main.go b/examples/gif-encoder/main.go index 3ead88c..1fb389a 100644 --- a/examples/gif-encoder/main.go +++ b/examples/gif-encoder/main.go @@ -57,23 +57,6 @@ func encodeGif(mainLoop *gst.MainLoop) error { // dynamically. For more information on why this is needed, see the decodebin // example. decodebin.Connect("pad-added", func(self *gst.Element, srcPad *gst.Pad) { - // // Make sure the user provided a valid video stream - // caps := srcPad.GetCurrentCaps() - // var haveVideo bool - // for i := 0; i < caps.GetSize(); i++ { - // if strings.HasPrefix(caps.GetStructureAt(i).Name(), "video/") { - // haveVideo = true - // } - // } - - // if !haveVideo { - // // If we do not have any valid video send a fatal error to the pipeline. - // err := gst.NewGError(1, errors.New("No video stream detected from the input file")) - // pipeline.GetPipelineBus(). - // Post(gst.NewErrorMessage(self, err, fmt.Sprintf("Received caps: %s", caps.String()), nil)) - // return - // } - // Build out the rest of the elements for the pipeline pipeline. elements, err := gst.NewElementMany("queue", "videoconvert", "videoscale", "videorate", "jpegenc") if err != nil {