mirror of
https://github.com/go-gst/go-gst.git
synced 2025-09-27 04:15:56 +08:00
fix ToGValue for nil structures
This commit is contained in:
@@ -202,10 +202,13 @@ func (s *Structure) ToGValue() (*glib.Value, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if s != nil {
|
||||
C.gst_value_set_structure(
|
||||
(*C.GValue)(unsafe.Pointer(val.GValue)),
|
||||
s.copy(),
|
||||
)
|
||||
}
|
||||
|
||||
return val, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user