How to set a special property in a plugin under strict type check
I am a rookie for gstreamer-rs and English is not my native language.
I got a problem as follow:
let src = gst::ElementFactory::make("videotestsrc").build().unwrap(); src.set_property("pattern", &0i32);
and I got a error: type 'GstVideoTestSrc' can't be set from the given type (expected: 'GstVideoTestSrcPattern', got: 'gint')'
How to set a special property like above which has a special type like 'GstVideoTestSrcPattern'?
I read the document about 'videotestsrc' and the 'GstVideoTestSrcPattern' is a enum.
Is there any way to declare a GValue which can satisfy the strict type check ?
I would appreciate it if anyone could help me.