d3d11h265dec: Assign PRIMARY + 1 rank

Promote d3d11h265dec to be default one if available

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2314>
This commit is contained in:
Seungha Yang 2022-04-28 00:48:35 +09:00 committed by GStreamer Marge Bot
parent dce45586e8
commit 4047653275

View file

@ -183,7 +183,8 @@ plugin_init (GstPlugin * plugin)
gst_d3d11_h264_dec_register (plugin,
device, GST_RANK_PRIMARY + 1, legacy);
if (!legacy) {
gst_d3d11_h265_dec_register (plugin, device, GST_RANK_PRIMARY);
/* avdec_h265 has primary rank, make this higher than it */
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);