forked from mirrors/gstreamer-rs
Value: use new union for GValue_data
This commit is contained in:
parent
ce28fed070
commit
ac31688fbd
1 changed files with 2 additions and 2 deletions
|
@ -560,7 +560,7 @@ impl<'a> From<&'a [glib::SendValue]> for Array<'a> {
|
|||
|
||||
impl<'a> FromValue<'a> for Array<'a> {
|
||||
unsafe fn from_value(v: &'a Value) -> Self {
|
||||
let arr = (*v.to_glib_none().0).data[0] as *const glib_ffi::GArray;
|
||||
let arr = (*v.to_glib_none().0).data[0].v_pointer as *const glib_ffi::GArray;
|
||||
if arr.is_null() {
|
||||
Array(Cow::Borrowed(&[]))
|
||||
} else {
|
||||
|
@ -631,7 +631,7 @@ impl<'a> From<&'a [glib::SendValue]> for List<'a> {
|
|||
|
||||
impl<'a> FromValue<'a> for List<'a> {
|
||||
unsafe fn from_value(v: &'a Value) -> Self {
|
||||
let arr = (*v.to_glib_none().0).data[0] as *const glib_ffi::GArray;
|
||||
let arr = (*v.to_glib_none().0).data[0].v_pointer as *const glib_ffi::GArray;
|
||||
if arr.is_null() {
|
||||
List(Cow::Borrowed(&[]))
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue