change more time.Durations to gst.ClockTime

This commit is contained in:
RSWilli
2023-08-24 20:23:51 +02:00
parent b54981346e
commit dec9519f50
29 changed files with 125 additions and 136 deletions

View File

@@ -22,13 +22,6 @@ func wrapGerr(gerr *C.GError) error {
return errors.New(C.GoString(gerr.message))
}
func durationToClockTime(d time.Duration) C.GstClockTime {
if d.Nanoseconds() < 0 {
return C.GstClockTime(gst.ClockTimeNone)
}
return C.GstClockTime(d.Nanoseconds())
}
func fromCoreCaps(caps *gst.Caps) *C.GstCaps {
return (*C.GstCaps)(unsafe.Pointer(caps.Instance()))
}