diff --git a/Makefile b/Makefile index b4a8b6e..f75313e 100644 --- a/Makefile +++ b/Makefile @@ -17,4 +17,4 @@ $(GOLANGCI_LINT): ln -s golangci-lint-$(GOLANGCI_VERSION)-$(shell uname | tr A-Z a-z)-amd64/golangci-lint $(GOLANGCI_LINT) lint: $(GOLANGCI_LINT) - $(GOLANGCI_LINT) run -v --timeout 300s --skip-dirs cmd/ \ No newline at end of file + $(GOLANGCI_LINT) run -v --timeout 300s --skip-dirs cmd/ --skip-files hack/* \ No newline at end of file diff --git a/gst/gst_caps.go b/gst/gst_caps.go index 396c232..390d941 100644 --- a/gst/gst_caps.go +++ b/gst/gst_caps.go @@ -218,7 +218,7 @@ func (c *Caps) FilterAndMapInPlace(f CapsMapFunc) { func (c *Caps) Fixate() *Caps { return wrapCaps(C.gst_caps_fixate(c.Instance())) } // ForEach calls the provided function once for each structure and caps feature in the GstCaps. The function must not -// modify the fields. +// modify the fields. There is an unresolved bug in this function currently and it is better to use MapInPlace instead. // // caps := gst.NewCapsFromString("audio/x-raw") // diff --git a/test.c b/hack/test.c similarity index 100% rename from test.c rename to hack/test.c diff --git a/test.go b/hack/test.go similarity index 69% rename from test.go rename to hack/test.go index 0eae081..872604e 100644 --- a/test.go +++ b/hack/test.go @@ -11,10 +11,10 @@ func main() { caps := gst.NewCapsFromString("audio/x-raw") - caps.ForEach(func(features *gst.CapsFeatures, structure *gst.Structure) bool { - fmt.Println(features) - return true - }) + // caps.ForEach(func(features *gst.CapsFeatures, structure *gst.Structure) bool { + // fmt.Println(features) + // return true + // }) caps.FilterAndMapInPlace(func(features *gst.CapsFeatures, structure *gst.Structure) bool { fmt.Println(features)