Commit ce334394 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Add GObjectExtManual trait and implement set_property_from_string() there

parent 91649b25
use glib;
use glib::IsA;
use glib::translate::{ToGlibPtr, from_glib};
use ffi;
pub trait GObjectExtManualGst {
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 {
ffi::gst_util_set_object_arg(self.to_glib_none().0, name.to_glib_none().0, value.to_glib_none().0);
......@@ -61,7 +61,9 @@ pub use tags::*;
mod element;
mod bin;
mod bus;
mod gobject;
pub use bin::BinExtManual;
pub use gobject::GObjectExtManualGst;
mod value;
pub use value::*;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment