mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-24 16:08:16 +00:00
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> {
|
impl<'a> FromValue<'a> for Array<'a> {
|
||||||
unsafe fn from_value(v: &'a Value) -> Self {
|
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() {
|
if arr.is_null() {
|
||||||
Array(Cow::Borrowed(&[]))
|
Array(Cow::Borrowed(&[]))
|
||||||
} else {
|
} else {
|
||||||
|
@ -631,7 +631,7 @@ impl<'a> From<&'a [glib::SendValue]> for List<'a> {
|
||||||
|
|
||||||
impl<'a> FromValue<'a> for List<'a> {
|
impl<'a> FromValue<'a> for List<'a> {
|
||||||
unsafe fn from_value(v: &'a Value) -> Self {
|
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() {
|
if arr.is_null() {
|
||||||
List(Cow::Borrowed(&[]))
|
List(Cow::Borrowed(&[]))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue