The issue there is that Gstreamer-Version=1.2 but struct.version=1.0, one easy way to filter 0.10or1.0 is to split(".")[0]. There might be a better way but that works for the current issue.
Once that fixed the code hit another issue where "pkg_caps.intersect(struct.caps)" returns a caps even when there is no intersect, the api has a is_empty() api, using it fixes the issue
The issue there is that Gstreamer- Version= 1.2 but struct.version=1.0, one easy way to filter 0.10or1.0 is to split(".")[0]. There might be a better way but that works for the current issue.
Once that fixed the code hit another issue where "pkg_caps. intersect( struct. caps)" returns a caps even when there is no intersect, the api has a is_empty() api, using it fixes the issue