mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-08 18:25:30 +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
|
"writable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rank": "primary + 1"
|
"rank": "primary"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"filename": "gstdav1d",
|
"filename": "gstdav1d",
|
||||||
|
|
|
@ -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())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue