package app // #include import "C" import ( "github.com/tinyzimmer/go-gst/gst" "github.com/tinyzimmer/go-gst/gst/base" ) func wrapAppSink(elem *gst.Element) *Sink { return &Sink{GstBaseSink: &base.GstBaseSink{Element: elem}} } func wrapAppSrc(elem *gst.Element) *Source { return &Source{GstBaseSrc: &base.GstBaseSrc{Element: elem}} } // gobool provides an easy type conversion between C.gboolean and a go bool. func gobool(b C.gboolean) bool { return int(b) > 0 } // gboolean converts a go bool to a C.gboolean. func gboolean(b bool) C.gboolean { if b { return C.gboolean(1) } return C.gboolean(0) }