gtksink Example compile error sink.property
I'm trying to use gtk and gstreamer and I'm follwing the gtksin example: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/blob/main/examples/src/bin/gtksink.rs
But unfortunately when I try to run I've got this error, also I've tried different this but I was not able to fix. Could someone help me?
Thanks in advance.
version 0.19.2 Windows 10 Gstreamer MSVC binaries 1.20.4
error[E0277]: the trait bound `for<'b> gtk::Widget: gstreamer::glib::value::FromValue<'b>` is not satisfied
--> src\main.rs:35:34
|
35 | let widget = sink.property::<gtk::Widget>("widget");
| ^^^^^^^^^^^ the trait `for<'b> gstreamer::glib::value::FromValue<'b>` is not implemented for `gtk::Widget`
|
= help: the following other types implement trait `gstreamer::glib::value::FromValue<'a>`:
<&'a BufferListRef as gstreamer::glib::value::FromValue<'a>>
<&'a BufferPool as gstreamer::glib::value::FromValue<'a>>
<&'a BufferRef as gstreamer::glib::value::FromValue<'a>>
<&'a Bus as gstreamer::glib::value::FromValue<'a>>
<&'a CapsFeaturesRef as gstreamer::glib::value::FromValue<'a>>
<&'a CapsRef as gstreamer::glib::value::FromValue<'a>>
<&'a ChildProxy as gstreamer::glib::value::FromValue<'a>>
<&'a ContextRef as gstreamer::glib::value::FromValue<'a>>
and 314 others
note: required by a bound in `gstreamer::prelude::ObjectExt::property`
--> C:\Users\xavero\.cargo\registry\src\github.com-1ecc6299db9ec823\glib-0.16.2\src\object.rs:1726:20
|
1726 | fn property<V: for<'b> FromValue<'b> + 'static>(&self, property_name: &str) -> V;
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `gstreamer::prelude::ObjectExt::property`