summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2022-12-01 03:52:53 +0900
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2022-12-02 17:56:22 +0000
commitac6b3e9a45e65b6ca8a26c261216c4d5f17124c9 (patch)
treef65da6ed00c3f137c0e4c93cd6fb78cd1380fb27
parent39f15af0386290911ebeda84d59c6fe4c149156e (diff)
downloadgstreamer-ac6b3e9a45e65b6ca8a26c261216c4d5f17124c9.tar.gz
d3d11av1dec: Promote rank to primary + 1
... so that this element can have higher rank than the other software AV1 decoders Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3495>
-rw-r--r--subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json2
-rw-r--r--subprojects/gst-plugins-bad/sys/d3d11/plugin.cpp3
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 <seungha@centricular.com>",
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);
}