mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 09:31:06 +00:00
Fix FromValueOptional impl for Segment
Should be from_glib_none(), not from_glib_full()
This commit is contained in:
parent
c8910aae08
commit
a10d081c22
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ impl glib::types::StaticType for Segment {
|
|||
#[doc(hidden)]
|
||||
impl<'a> glib::value::FromValueOptional<'a> for Segment {
|
||||
unsafe fn from_value_optional(value: &glib::Value) -> Option<Self> {
|
||||
Option::<Segment>::from_glib_full(gobject_ffi::g_value_get_boxed(value.to_glib_none().0) as
|
||||
Option::<Segment>::from_glib_none(gobject_ffi::g_value_get_boxed(value.to_glib_none().0) as
|
||||
*mut ffi::GstSegment)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue