From ac6b3e9a45e65b6ca8a26c261216c4d5f17124c9 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 1 Dec 2022 03:52:53 +0900 Subject: [PATCH] d3d11av1dec: Promote rank to primary + 1 ... so that this element can have higher rank than the other software AV1 decoders Part-of: --- .../gst-plugins-bad/docs/plugins/gst_plugins_cache.json | 2 +- subprojects/gst-plugins-bad/sys/d3d11/plugin.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json index 3b147a8c9d..519ead4fbd 100644 --- a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json +++ b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json @@ -7305,7 +7305,7 @@ "writable": false } }, - "rank": "primary" + "rank": "primary + 1" }, "d3d11colorconvert": { "author": "Seungha Yang ", diff --git a/subprojects/gst-plugins-bad/sys/d3d11/plugin.cpp b/subprojects/gst-plugins-bad/sys/d3d11/plugin.cpp index 5d31fd4155..c6337e1820 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/plugin.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/plugin.cpp @@ -192,7 +192,8 @@ plugin_init (GstPlugin * plugin) gst_d3d11_h265_dec_register (plugin, device, GST_RANK_PRIMARY + 1); gst_d3d11_vp9_dec_register (plugin, device, GST_RANK_PRIMARY); gst_d3d11_vp8_dec_register (plugin, device, GST_RANK_PRIMARY); - gst_d3d11_av1_dec_register (plugin, device, GST_RANK_PRIMARY); + /* rust dav1ddec has "primary" rank */ + gst_d3d11_av1_dec_register (plugin, device, GST_RANK_PRIMARY + 1); gst_d3d11_mpeg2_dec_register (plugin, device, GST_RANK_SECONDARY); }