mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 16:36:51 +08:00
Merge plugin experimentation branch - GstBaseSrcs can now be implemented via the bindings but with very limited functionality still
This commit is contained in:
12
gst/base/util.go
Normal file
12
gst/base/util.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package base
|
||||
|
||||
//#include "gst.go.h"
|
||||
import "C"
|
||||
|
||||
// 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)
|
||||
}
|
Reference in New Issue
Block a user