This commit is contained in:
tinyzimmer
2020-10-04 19:03:32 +03:00
parent d3fb9cb874
commit 172ebc7c7e

View File

@@ -93,7 +93,7 @@ func encodeGif(mainLoop *gst.MainLoop) error {
pipeline.Add(appSink.Element)
jpegenc.Link(appSink.Element)
// Wee can query the decodebin for the duration of the video it received. We can then
// We can query the decodebin for the duration of the video it received. We can then
// use this value to calculate the total number of frames we expect to produce.
query := gst.NewDurationQuery(gst.FormatTime)
if ok := self.Query(query); !ok {