Files
go-gst/gst/gst_clock.go
2020-09-24 21:34:29 +03:00

23 lines
481 B
Go

package gst
/*
#cgo pkg-config: gstreamer-1.0
#cgo CFLAGS: -Wno-deprecated-declarations -g -Wall
#include <gst/gst.h>
#include "gst.go.h"
*/
import "C"
import (
"unsafe"
)
// Clock is a go wrapper around a GstClock.
type Clock struct{ *Object }
// Instance returns the underlying GstClock instance.
func (c *Clock) Instance() *C.GstClock { return C.toGstClock(c.unsafe()) }
func wrapClock(c *C.GstClock) *Clock {
return &Clock{wrapObject(C.toGstObject(unsafe.Pointer(c)))}
}