vadisplay: fix minor version check

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7169>
This commit is contained in:
Víctor Manuel Jáquez Leal 2024-07-12 12:34:52 +02:00 committed by Backport Bot
parent 7502b1ef29
commit 2962097764

View file

@ -480,7 +480,7 @@ gst_va_display_check_version (GstVaDisplay * self, guint major, guint minor)
if (priv->driver_major < major)
return FALSE;
if (priv->driver_minor < minor)
if (priv->driver_major == major && priv->driver_minor < minor)
return FALSE;
return TRUE;