mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
gstreamer: pad: Remove unnecessary <1.14 compatibility code
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1591>
This commit is contained in:
parent
209c5eef35
commit
44006bc4f1
1 changed files with 10 additions and 15 deletions
|
@ -1680,11 +1680,7 @@ impl<T: IsA<Pad> + IsA<glib::Object> + glib::object::IsClass> PadBuilder<T> {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
|
|
||||||
let mut type_ = T::static_type();
|
let mut type_ = T::static_type();
|
||||||
|
let gtype = templ.gtype();
|
||||||
// Since 1.14 templates can keep a pad GType with them, so we need to do some
|
|
||||||
// additional checks here now
|
|
||||||
if templ.has_property_with_type("gtype", glib::Type::static_type()) {
|
|
||||||
let gtype = templ.property::<glib::Type>("gtype");
|
|
||||||
|
|
||||||
if gtype == glib::Type::UNIT {
|
if gtype == glib::Type::UNIT {
|
||||||
// Nothing to be done, we can create any kind of pad
|
// Nothing to be done, we can create any kind of pad
|
||||||
|
@ -1696,7 +1692,6 @@ impl<T: IsA<Pad> + IsA<glib::Object> + glib::object::IsClass> PadBuilder<T> {
|
||||||
// Otherwise the requested type must be a subclass of the template pad type
|
// Otherwise the requested type must be a subclass of the template pad type
|
||||||
assert!(type_.is_a(gtype));
|
assert!(type_.is_a(gtype));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
let mut properties = [
|
let mut properties = [
|
||||||
("direction", templ.direction().into()),
|
("direction", templ.direction().into()),
|
||||||
|
|
Loading…
Reference in a new issue