mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
Don't panic when getting a property failed
This commit is contained in:
parent
bda421d218
commit
c1ca7902f1
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ unsafe extern "C" fn get_property<T: ObjectType>(
|
|||
ptr::write(value, ptr::read(v.to_glib_none().0));
|
||||
mem::forget(v);
|
||||
}
|
||||
Err(_) => unimplemented!(),
|
||||
Err(()) => eprintln!("Failed to get property"),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -340,7 +340,7 @@ unsafe extern "C" fn sub_get_property<T: ObjectType>(
|
|||
ptr::write(value, ptr::read(v.to_glib_none().0));
|
||||
mem::forget(v);
|
||||
}
|
||||
Err(_) => unimplemented!(),
|
||||
Err(()) => eprintln!("Failed to get property"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue