dav1ddec: Lower rank to primary

The rank of AOM av1dec was demoted as secondary, and thus
primary rank is sufficient.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/996>
This commit is contained in:
Seungha Yang 2022-12-01 03:35:39 +09:00 committed by GStreamer Marge Bot
parent f9e5a68156
commit 1c145e2ba9
2 changed files with 10 additions and 7 deletions

View file

@ -1070,7 +1070,7 @@
"writable": true
}
},
"rank": "primary + 1"
"rank": "primary"
}
},
"filename": "gstdav1d",

View file

@ -18,10 +18,13 @@ glib::wrapper! {
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"dav1ddec",
gst::Rank::Primary + 1,
Dav1dDec::static_type(),
)
let rank = if gst::version() >= (1, 21, 2, 1) {
// AOM av1dec rank was demoted in 1.22 dev cycle
// https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3287
gst::Rank::Primary
} else {
gst::Rank::Primary + 1
};
gst::Element::register(Some(plugin), "dav1ddec", rank, Dav1dDec::static_type())
}