mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-21 15:09:22 +08:00
finish GstTagList, GstToc, setters, and add auto go type conversion for functions taking gvalues
This commit is contained in:
@@ -87,7 +87,7 @@ func (s *Structure) SetValue(key string, value interface{}) error {
|
||||
}
|
||||
cKey := C.CString(key)
|
||||
defer C.free(unsafe.Pointer(cKey))
|
||||
C.gst_structure_set_value(s.Instance(), cKey, (*C.GValue)(gVal.GetPointer()))
|
||||
C.gst_structure_set_value(s.Instance(), cKey, (*C.GValue)(unsafe.Pointer(gVal.GValue)))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user