GNOME Bugzilla – Bug 739535
Provide a way to get the version number of gst-python introspection overrides
Last modified: 2018-05-07 09:27:54 UTC
In the old days of static bindings, gst-python had a function where you could check its version number. AFAICT this is gone since the era of introspection, but the need is still there. Currently, in Pitivi the only way we have to check for gst-python's presence (let alone its version) is to try to do a Gst.Fraction(90001, 1) and see if it spits a TypeError (saying that no arguments are supported etc).
Just get the gstreamer version (gi.repository.Gst.version()). The overrides are released at the same time.