2020-12-15 10:53:31 +00:00
|
|
|
// Take a look at the license at the top of the repository in the LICENSE file.
|
|
|
|
|
2017-07-24 08:52:28 +00:00
|
|
|
use glib::translate::ToGlibPtr;
|
2018-04-25 08:10:06 +00:00
|
|
|
use glib::IsA;
|
2017-07-20 08:39:44 +00:00
|
|
|
|
2018-12-08 09:22:42 +00:00
|
|
|
pub trait GObjectExtManualGst: 'static {
|
2017-07-20 08:39:44 +00:00
|
|
|
fn set_property_from_str(&self, name: &str, value: &str);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<O: IsA<glib::Object>> GObjectExtManualGst for O {
|
|
|
|
fn set_property_from_str(&self, name: &str, value: &str) {
|
|
|
|
unsafe {
|
2020-11-21 13:46:48 +00:00
|
|
|
ffi::gst_util_set_object_arg(
|
2019-01-16 11:32:58 +00:00
|
|
|
self.as_ref().to_glib_none().0,
|
2017-07-24 08:52:28 +00:00
|
|
|
name.to_glib_none().0,
|
|
|
|
value.to_glib_none().0,
|
|
|
|
);
|
2017-07-20 08:39:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|