do not mention Unref() in the docs where not applicable

This commit is contained in:
RSWilli
2024-06-24 10:58:08 +02:00
parent 0f5ee09329
commit 0f1a6e152f
24 changed files with 46 additions and 88 deletions

View File

@@ -17,8 +17,7 @@ const NTPTimeToUnixEpoch = gst.ClockTime(2208988800 * time.Second)
// NTPClock wraps GstClock
type NTPClock struct{ *gst.Clock }
// ObtainNTPClock returns the default NTPClock. The refcount of the clock will be
// increased so you need to unref the clock after usage.
// ObtainNTPClock returns the default NTPClock.
func ObtainNTPClock(ctx context.Context, name, address string, port int) (*NTPClock, error) {
cname := C.CString(name)
defer C.free(unsafe.Pointer(cname))