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:
Sebastian Dröge 2024-11-13 17:04:32 +02:00
parent 209c5eef35
commit 44006bc4f1

View file

@ -1680,11 +1680,7 @@ impl<T: IsA<Pad> + IsA<glib::Object> + glib::object::IsClass> PadBuilder<T> {
assert_initialized_main_thread!();
let mut type_ = T::static_type();
// 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");
let gtype = templ.gtype();
if gtype == glib::Type::UNIT {
// 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
assert!(type_.is_a(gtype));
}
}
let mut properties = [
("direction", templ.direction().into()),