mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
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:
parent
f9e5a68156
commit
1c145e2ba9
2 changed files with 10 additions and 7 deletions
|
@ -1070,7 +1070,7 @@
|
|||
"writable": true
|
||||
}
|
||||
},
|
||||
"rank": "primary + 1"
|
||||
"rank": "primary"
|
||||
}
|
||||
},
|
||||
"filename": "gstdav1d",
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue