mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
libs: display: iterate all quirks table
Instead of break at the fist foud quirk in the table, iterate all over so it would be feasible to add several quirks for one driver per element in array.
This commit is contained in:
parent
acf90c1070
commit
ae0261023a
1 changed files with 3 additions and 3 deletions
|
@ -791,12 +791,12 @@ set_driver_quirks (GstVaapiDisplay * display)
|
|||
const char *match_str = vaapi_driver_quirks_table[i].match_string;
|
||||
if (g_strstr_len (priv->vendor_string, strlen (priv->vendor_string),
|
||||
match_str) != NULL) {
|
||||
GST_INFO_OBJECT (display, "Matched driver string \"%s\", setting quirks "
|
||||
"(%#x)", priv->vendor_string, vaapi_driver_quirks_table[i].quirks);
|
||||
priv->driver_quirks |= vaapi_driver_quirks_table[i].quirks;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
GST_INFO_OBJECT (display, "Matched driver string \"%s\", setting quirks "
|
||||
"(%#x)", priv->vendor_string, priv->driver_quirks);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue