pluginfeature: disable version mangling for post-1.0.0 release
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 1 Sep 2012 16:32:04 +0000 (17:32 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 1 Sep 2012 22:02:10 +0000 (23:02 +0100)
Just in case we don't grep for FIXME 1.0 before the release.

gst/gstpluginfeature.c

index f22f2b4..065834e 100644 (file)
@@ -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)