Files
go-gst/gst/gst_system_clock.go
2021-01-19 00:18:30 +02:00

17 lines
417 B
Go

package gst
// #include "gst.go.h"
import "C"
import (
"unsafe"
)
// SystemClock wraps GstSystemClock
type SystemClock struct{ *Clock }
// ObtainSystemClock returns the default SystemClock. The refcount of the clock will be
// increased so you need to unref the clock after usage.
func ObtainSystemClock() *SystemClock {
return &SystemClock{FromGstClockUnsafeFull(unsafe.Pointer(C.gst_system_clock_obtain()))}
}