Skip to content

Commit

Permalink
more gstreamer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev committed Feb 29, 2024
1 parent 617f226 commit bf5dafd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion backends/gstreamer/media_stream_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pub fn register_servo_media_stream_src() -> Result<(), glib::BoolError> {
gst::Element::register(
None,
"servomediastreamsrc",
gst::Rank::None,
gst::Rank::NONE,
ServoMediaStreamSrc::static_type(),
)
}
10 changes: 5 additions & 5 deletions backends/gstreamer/registry_scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ impl GStreamerRegistryScanner {
fn initialize(&mut self) {
let audio_decoder_factories = gst::ElementFactory::factories_with_type(
gst::ElementFactoryType::DECODER | gst::ElementFactoryType::MEDIA_AUDIO,
gst::Rank::Marginal,
gst::Rank::MARGINAL,
);
let audio_parser_factories = gst::ElementFactory::factories_with_type(
gst::ElementFactoryType::PARSER | gst::ElementFactoryType::MEDIA_AUDIO,
gst::Rank::None,
gst::Rank::NONE,
);
let video_decoder_factories = gst::ElementFactory::factories_with_type(
gst::ElementFactoryType::DECODER | gst::ElementFactoryType::MEDIA_VIDEO,
gst::Rank::Marginal,
gst::Rank::MARGINAL,
);
let video_parser_factories = gst::ElementFactory::factories_with_type(
gst::ElementFactoryType::PARSER | gst::ElementFactoryType::MEDIA_VIDEO,
gst::Rank::Marginal,
gst::Rank::MARGINAL,
);
let demux_factories = gst::ElementFactory::factories_with_type(
gst::ElementFactoryType::DEMUXER,
gst::Rank::Marginal,
gst::Rank::MARGINAL,
);

if has_element_for_media_type(&audio_decoder_factories, "audio/mpeg, mpegversion=(int)4") {
Expand Down
2 changes: 1 addition & 1 deletion backends/gstreamer/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,5 +405,5 @@ impl ServoSrc {
// under the name "servosrc" for being able to instantiate it via e.g.
// gst::ElementFactory::make().
pub fn register_servo_src() -> Result<(), glib::BoolError> {
gst::Element::register(None, "servosrc", gst::Rank::None, ServoSrc::static_type())
gst::Element::register(None, "servosrc", gst::Rank::NONE, ServoSrc::static_type())
}

0 comments on commit bf5dafd

Please sign in to comment.