Using the test VA display, the driver name is queried, and if it is not
white-listed, the plugin rejects to register any element.
https://bugzilla.gnome.org/show_bug.cgi?id=724352
display = gst_vaapi_create_test_display ();
if (!display)
goto error_no_display;
+ if (!gst_vaapi_driver_is_whitelisted (display))
+ goto unsupported_driver;
gst_vaapidecode_register (plugin);
* transient condition */
return TRUE;
}
+unsupported_driver:
+ {
+ gst_vaapi_display_unref (display);
+ return TRUE; /* return TRUE to avoid get blacklisted */
+ }
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR,