fix one issue with building on arm64

This commit is contained in:
Dan Jenkins
2022-05-24 10:38:18 +01:00
parent 48ea21a3f5
commit ce3bd341fd
2 changed files with 15 additions and 1 deletions

13
element_arm64.go Normal file
View File

@@ -0,0 +1,13 @@
package gst
/*
#cgo pkg-config: gstreamer-1.0 gstreamer-app-1.0
#include "gst.h"
*/
import "C"
import "time"
func (e *Element) Seek(duration time.Duration) bool {
result := C.gst_element_seek_simple(e.GstElement, C.GST_FORMAT_TIME, C.GST_SEEK_FLAG_FLUSH, C.longlong(duration.Nanoseconds()))
return result == C.TRUE
}

View File

@@ -1,4 +1,5 @@
// +build !arm
//go:build !arm && !arm64
// +build !arm,!arm64
package gst