The framerate can be a range or a fraction, one now needs to handle both cases. If it's not a range, then the framerate needs to be exactly the same. Also avoid leaking the GstStructure Fixes a regression introduced by https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7850 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8000>