From 079b2cb0c791c9bd5a272129f2d4db1e26e1beda Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Apr 2012 13:23:00 +0200 Subject: [PATCH] gstplugin: Add hack for handling 0.11.9X and 0.11.89.X with X>0 the same as 1.0.0 Also update the version number to 0.11.89.1 --- configure.ac | 2 +- gst/gstpluginfeature.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c9a7380..a267890 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ(2.60) dnl initialize autoconf dnl when going to/from release please set the nano (fourth number) right ! dnl releases only do Wall, git and prerelease does Werror too -AC_INIT(GStreamer, 0.11.3.1, +AC_INIT(GStreamer, 0.11.89.1, http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer, gstreamer) AG_GST_INIT diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c index 58bab7e..5b86fd3 100644 --- a/gst/gstpluginfeature.c +++ b/gst/gstpluginfeature.c @@ -301,6 +301,15 @@ 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 (major > min_major) ret = TRUE; else if (major < min_major) -- 2.7.4