mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 01:21:05 +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!();
|
||||
|
||||
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()),
|
||||
|
|
Loading…
Reference in a new issue