organize hack code

This commit is contained in:
tinyzimmer
2020-09-30 15:58:45 +03:00
parent db3e1262de
commit c482d3d15a
4 changed files with 6 additions and 6 deletions

25
hack/test.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"fmt"
"github.com/tinyzimmer/go-gst/gst"
)
func main() {
gst.Init(nil)
caps := gst.NewCapsFromString("audio/x-raw")
// 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)
return true
})
caps.Unref()
}