d3d11av1dec: Promote rank to primary + 1
authorSeungha Yang <seungha@centricular.com>
Wed, 30 Nov 2022 18:52:53 +0000 (03:52 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 2 Dec 2022 17:56:22 +0000 (17:56 +0000)
... 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>

subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
subprojects/gst-plugins-bad/sys/d3d11/plugin.cpp

index 3b147a8..519ead4 100644 (file)
                         "writable": false
                     }
                 },
-                "rank": "primary"
+                "rank": "primary + 1"
             },
             "d3d11colorconvert": {
                 "author": "Seungha Yang <seungha@centricular.com>",
index 5d31fd4..c6337e1 100644 (file)
@@ -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);
       }