fix ToGValue for nil structures

This commit is contained in:
RSWilli
2024-12-09 09:15:27 +01:00
parent b36979a5b8
commit b9dce0b926

View File

@@ -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
}