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
This commit is contained in:
Sebastian Dröge 2012-04-05 13:23:00 +02:00
parent 515a1ad0f7
commit 079b2cb0c7
2 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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)