cdg: set rank of parser and decoder to Primary

This commit is contained in:
Guillaume Desmottes 2019-06-03 21:57:40 +05:30
parent 53e530f7db
commit d12950a434
2 changed files with 12 additions and 2 deletions

View file

@ -221,5 +221,10 @@ impl VideoDecoderImpl for CdgDec {
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(Some(plugin), "cdgdec", 0, CdgDec::get_type())
gst::Element::register(
Some(plugin),
"cdgdec",
gst::Rank::Primary,
CdgDec::get_type(),
)
}

View file

@ -223,5 +223,10 @@ impl BaseParseImpl for CdgParse {
}
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(Some(plugin), "cdgparse", 0, CdgParse::get_type())
gst::Element::register(
Some(plugin),
"cdgparse",
gst::Rank::Primary,
CdgParse::get_type(),
)
}