Commit 833b16de authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Update element/typefind factory ranks

The only None ranks now are:
- cdgdec/cdgparse: Primary
- rav1enc: Primary
- reqwesthttpsrc: Marginal
- s3sink/s3src: Primary
- mccenc/mccparse: Primary
- sccenc/sccparse: Primary

All other ranks are set to None until the elements are ready to replace
the existing C elements, or are otherwise production-ready and of a
element kind that should be autoplugged in one way or another.

For example the sodium elements are production-ready but can't be
autoplugged and as such should stay at a None rank.
parent d6a28ead
Pipeline #46052 passed with stages
in 16 minutes and 14 seconds
......@@ -630,5 +630,10 @@ impl ElementImpl for MccEnc {
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(Some(plugin), "mccenc", gst::Rank::None, MccEnc::get_type())
gst::Element::register(
Some(plugin),
"mccenc",
gst::Rank::Primary,
MccEnc::get_type(),
)
}
......@@ -1294,7 +1294,7 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"mccparse",
gst::Rank::None,
gst::Rank::Primary,
MccParse::get_type(),
)
}
......@@ -450,5 +450,10 @@ impl ElementImpl for SccEnc {
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(Some(plugin), "sccenc", gst::Rank::None, SccEnc::get_type())
gst::Element::register(
Some(plugin),
"sccenc",
gst::Rank::Primary,
SccEnc::get_type(),
)
}
......@@ -564,7 +564,7 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"sccparse",
gst::Rank::None,
gst::Rank::Primary,
SccParse::get_type(),
)
}
......@@ -330,7 +330,7 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"rsfilesink",
gst::Rank::Primary + 100,
gst::Rank::None,
FileSink::get_type(),
)
}
......@@ -384,7 +384,7 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"rsfilesrc",
gst::Rank::Primary + 100,
gst::Rank::None,
FileSrc::get_type(),
)
}
......@@ -1583,7 +1583,7 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"rsflvdemux",
gst::Rank::Primary + 100,
gst::Rank::None,
FlvDemux::get_type(),
)
}
......@@ -730,7 +730,7 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"rav1enc",
gst::Rank::None,
gst::Rank::Primary,
Rav1Enc::get_type(),
)
}
......@@ -560,7 +560,7 @@ pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(
Some(plugin),
"reqwesthttpsrc",
gst::Rank::Primary + 100,
gst::Rank::Marginal,
ReqwestHttpSrc::get_type(),
)
}
......@@ -552,5 +552,10 @@ impl BaseSinkImpl for S3Sink {
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(Some(plugin), "s3sink", gst::Rank::None, S3Sink::get_type())
gst::Element::register(
Some(plugin),
"s3sink",
gst::Rank::Primary,
S3Sink::get_type(),
)
}
......@@ -438,5 +438,5 @@ impl BaseSrcImpl for S3Src {
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(Some(plugin), "s3src", gst::Rank::None, S3Src::get_type())
gst::Element::register(Some(plugin), "s3src", gst::Rank::Primary, S3Src::get_type())
}
......@@ -47,7 +47,7 @@ fn typefind_register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
TypeFind::register(
Some(plugin),
"sodium_encrypted_typefind",
gst::Rank::Primary,
gst::Rank::None,
None,
Some(&Caps::new_simple("application/x-sodium-encrypted", &[])),
|typefind| {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment