diff --git a/gst/gst_init.go b/gst/gst_init.go index c2ea8cd..3b188e2 100644 --- a/gst/gst_init.go +++ b/gst/gst_init.go @@ -45,3 +45,10 @@ func Init(args *[]string) { } CAT = NewDebugCategory("GST_GO", DebugColorFgCyan, "GStreamer Go Bindings") } + +// Deinit is a wrapper for gst_deinit Clean up any resources created by GStreamer in gst_init(). +// It is normally not needed to call this function in a normal application as the resources will automatically be freed +// when the program terminates. This function is therefore mostly used by testsuites and other memory profiling tools. +func Deinit() { + C.gst_deinit() +} diff --git a/gst/pkg_config.go b/gst/pkg_config.go index 8c292c7..61550f6 100644 --- a/gst/pkg_config.go +++ b/gst/pkg_config.go @@ -2,7 +2,7 @@ package gst /* #cgo pkg-config: gstreamer-1.0 -#cgo CFLAGS: -Wno-deprecated-declarations -Wno-format-security -g -Wall +#cgo CFLAGS: -Wno-deprecated-declarations -Wno-format-security -g -Wall -Wno-unused-variable #cgo LDFLAGS: -lm */ import "C"