mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-22 10:06:29 +00:00
tutorial/progressbin: Fix downcast type
This commit is contained in:
parent
4206b53c09
commit
cb7741919d
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ impl ObjectImpl for ProgressBin {
|
|||
// at any time from any thread.
|
||||
fn set_property(&self, obj: &glib::Object, id: usize, value: &glib::Value) {
|
||||
let prop = &PROPERTIES[id];
|
||||
let element = obj.downcast_ref::<gst_base::BaseTransform>().unwrap();
|
||||
let element = obj.downcast_ref::<gst::Bin>().unwrap();
|
||||
|
||||
match *prop {
|
||||
subclass::Property("output", ..) => {
|
||||
|
|
Loading…
Reference in a new issue