vadisplay: fix minor version check

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7164>
This commit is contained in:
Víctor Manuel Jáquez Leal 2024-07-12 12:34:52 +02:00
parent 3a2e8d2d19
commit 058ae85b22

View file

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