From 0444660d1fec99589482c653d8fcf5372bb23717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 6 Nov 2021 09:36:38 +0200 Subject: [PATCH] gstreamer: Don't use a trait object for the property value in ChildProxy::set_child_property() This makes it nicer to use as `1` can be passed directly instead of `&1`. --- gstreamer/src/child_proxy.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gstreamer/src/child_proxy.rs b/gstreamer/src/child_proxy.rs index d48d561f4..96bdde989 100644 --- a/gstreamer/src/child_proxy.rs +++ b/gstreamer/src/child_proxy.rs @@ -8,10 +8,10 @@ use std::ptr; pub trait ChildProxyExtManual: 'static { #[doc(alias = "get_child_property")] fn child_property(&self, name: &str) -> Option; - fn set_child_property( + fn set_child_property( &self, name: &str, - value: &dyn glib::ToValue, + value: V, ) -> Result<(), glib::BoolError>; } @@ -38,10 +38,10 @@ impl> ChildProxyExtManual for O { } } - fn set_child_property( + fn set_child_property( &self, name: &str, - value: &dyn glib::ToValue, + value: V, ) -> Result<(), glib::BoolError> { unsafe { let found: bool = from_glib(ffi::gst_child_proxy_lookup(