Commit 36c9ba99 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

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.
parent 8b60aa8e
...@@ -73,7 +73,9 @@ G_BEGIN_DECLS ...@@ -73,7 +73,9 @@ G_BEGIN_DECLS
(GST_PLUGINS_BASE_VERSION_MAJOR > (major) || \ (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_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); void gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment