mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-30 03:02:09 +08:00
change more time.Durations to gst.ClockTime
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user