diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2023-04-29 12:16:09 +0100 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2023-05-02 18:09:42 +0000 |
commit | f64acbf9e5c800170cd425b871bfcf60cde4d554 (patch) | |
tree | 46bbf7fc22441973347195234c1a45cbe1fe2f3a /girs | |
parent | 66c15bc753f2aeb58fd08dd08354e3b0ae043192 (diff) | |
download | gstreamer-f64acbf9e5c800170cd425b871bfcf60cde4d554.tar.gz |
pluginfeature: fix unexpected version check behaviour for git versions
check_version(1.23.1) would return TRUE for a git development version
like 1.23.0.1, which is quite confusing and somewhat unexpected.
We fixed this up in the version check macros already in !2501, so this
updates the run-time check accordingly as well.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4513>
Diffstat (limited to 'girs')
-rw-r--r-- | girs/Gst-1.0.gir | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir index f57e64376e..f82f08d4cf 100644 --- a/girs/Gst-1.0.gir +++ b/girs/Gst-1.0.gir @@ -33400,8 +33400,13 @@ ranks are equal but the name of p2 comes before the name of p1</doc> </parameters> </function> <method name="check_version" c:identifier="gst_plugin_feature_check_version"> - <doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstpluginfeature.c">Checks whether the given plugin feature is at least - the required version</doc> + <doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstpluginfeature.c">Checks whether the given plugin feature is at least the required version. + +Note: Since version 1.24 this function no longer returns %TRUE if the +version is a git development version (e.g. 1.23.0.1) and the check is +for the "next" micro version, that is it will no longer return %TRUE for +e.g. 1.23.0.1 if the check is for 1.23.1. It is still possible to parse +the nano version from the string and do this check that way if needed.</doc> <source-position filename="../subprojects/gstreamer/gst/gstpluginfeature.h"/> <return-value transfer-ownership="none"> <doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstpluginfeature.c">%TRUE if the plugin feature has at least |