From 13d090b5660a2e2e2c997db44ba9a391101e8bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Sat, 6 Jun 2020 18:47:35 +0200 Subject: [PATCH] vaapisink: rank it as secondary iHD doesn't provide a full implemention for rendering surfaces and i965 has problems in wayland. And I suspect this path is followed by other driver implementations. This patch demotes the rank of vaapisink to secondary, so it will not be autoplugged avoiding bad experience of users. Part-of: --- gst/vaapi/gstvaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapi.c b/gst/vaapi/gstvaapi.c index 2a34ae6284..d4499f6c50 100644 --- a/gst/vaapi/gstvaapi.c +++ b/gst/vaapi/gstvaapi.c @@ -212,7 +212,7 @@ plugin_init (GstPlugin * plugin) gst_element_register (plugin, "vaapidecodebin", GST_RANK_PRIMARY + 2, GST_TYPE_VAAPI_DECODE_BIN); - rank = GST_RANK_PRIMARY; + rank = GST_RANK_SECONDARY; if (g_getenv ("WAYLAND_DISPLAY")) rank = GST_RANK_MARGINAL; gst_element_register (plugin, "vaapisink", rank, GST_TYPE_VAAPISINK);