pbutils: Take nano version into account in GST_CHECK_PLUGINS_BASE_VERSION()

If the nano is > 0 the current version should be handled the same as
micro + 1.
This commit is contained in:
Sebastian Dröge 2010-11-03 11:13:08 +01:00
parent 8b60aa8e01
commit 36c9ba990a

View file

@ -73,7 +73,9 @@ G_BEGIN_DECLS
(GST_PLUGINS_BASE_VERSION_MAJOR > (major) || \
(GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR > (minor)) || \
(GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
GST_PLUGINS_BASE_VERSION_MICRO >= (micro)))
GST_PLUGINS_BASE_VERSION_MICRO >= (micro)) || \
(GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
GST_PLUGINS_BASE_VERSION_MICRO + 1 == (micro) && GST_PLUGINS_BASE_VERSION_NANO > 0))
void gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano);