switch to github.com/go-gst/go-pointer

This commit is contained in:
RSWilli
2024-11-27 17:54:38 +01:00
parent 84517be28f
commit 0577406af2
23 changed files with 58 additions and 39 deletions

View File

@@ -22,7 +22,7 @@ import (
"unsafe"
"github.com/go-gst/go-glib/glib"
gopointer "github.com/mattn/go-pointer"
gopointer "github.com/go-gst/go-pointer"
)
// Structure is a go implementation of a C GstStructure.
@@ -212,8 +212,7 @@ func (s *Structure) ToGValue() (*glib.Value, error) {
// marshalStructure is used to extract the GstStructure from a GValue.
func marshalStructure(p unsafe.Pointer) (interface{}, error) {
c := C.gst_value_get_structure(toGValue(p))
obj := (*C.GstStructure)(unsafe.Pointer(c))
return structureFromGlibNone(obj), nil
return structureFromGlibNone(c), nil
}
func wrapStructure(st *C.GstStructure) *Structure {