mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 16:06:55 +08:00
17 lines
417 B
Go
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()))}
|
|
}
|