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