From 5d062480dff40146dc16599deac1276325cd8c0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 1 Sep 2012 17:32:04 +0100 Subject: [PATCH] pluginfeature: disable version mangling for post-1.0.0 release Just in case we don't grep for FIXME 1.0 before the release. --- gst/gstpluginfeature.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c index f22f2b4..065834e 100644 --- a/gst/gstpluginfeature.c +++ b/gst/gstpluginfeature.c @@ -317,13 +317,16 @@ gst_plugin_feature_check_version (GstPluginFeature * feature, GST_DEBUG ("version string '%s' parsed to %d values", ver_str, nscan); if (nscan >= 3) { - /* FIXME 1.0: Remove this before doing the actual 1.0.0 release */ - if ((major == 0 && minor == 11 && micro >= 90) || - (major == 0 && minor == 11 && micro == 89 && nano > 0)) { - major = 1; - minor = 0; - micro = 0; - nano = 0; + if (!g_str_has_prefix (PACKAGE_VERSION, "1.")) { + /* FIXME 1.0: Remove this before doing the actual 1.0.0 release */ + if ((major == 0 && minor == 11 && micro >= 90)) { + major = 1; + minor = 0; + micro = 0; + nano = 0; + } + } else { + GST_FIXME ("Remove pre-1.0 versions mangling"); } if (major > min_major) -- 2.7.4