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/1008>
This commit is contained in:
Seungha Yang 2022-12-01 03:35:39 +09:00 committed by Sebastian Dröge
parent 2227b41342
commit 506c96e8aa
2 changed files with 10 additions and 7 deletions

View file

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

View file

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