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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
C.gst_value_set_structure(
|
if s != nil {
|
||||||
(*C.GValue)(unsafe.Pointer(val.GValue)),
|
C.gst_value_set_structure(
|
||||||
s.copy(),
|
(*C.GValue)(unsafe.Pointer(val.GValue)),
|
||||||
)
|
s.copy(),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
return val, nil
|
return val, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user