From 6b58c2173c8bd0d3a8f39be0f82e82f9ab6f62ec Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 27 Nov 2024 15:49:55 +0100 Subject: [PATCH] meson: Detect unrelease gstreamer version number If the minor version is odd, it means we are depending on gstreamer main and should therefore enable the features of the (upcoming) even minor version Part-of: --- dependencies.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dependencies.py b/dependencies.py index 3933f4d6..d9a820c5 100755 --- a/dependencies.py +++ b/dependencies.py @@ -66,6 +66,8 @@ class CargoAnalyzer: wanted_features = set() gst_version_major = int(self.gst_version.split('.')[0]) gst_version_minor = int(self.gst_version.split('.')[1]) + if gst_version_minor % 2: + gst_version_minor += 1 for (name, value) in features.items(): version = self.extract_version(name)