From bf5dafd00dd5b89fb21e57358297314ac1cf638e Mon Sep 17 00:00:00 2001 From: sagudev <16504129+sagudev@users.noreply.github.com> Date: Thu, 29 Feb 2024 18:19:22 +0100 Subject: [PATCH] more gstreamer changes --- backends/gstreamer/media_stream_source.rs | 2 +- backends/gstreamer/registry_scanner.rs | 10 +++++----- backends/gstreamer/source.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backends/gstreamer/media_stream_source.rs b/backends/gstreamer/media_stream_source.rs index ba32d75d..5066ed3a 100644 --- a/backends/gstreamer/media_stream_source.rs +++ b/backends/gstreamer/media_stream_source.rs @@ -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(), ) } diff --git a/backends/gstreamer/registry_scanner.rs b/backends/gstreamer/registry_scanner.rs index 14f2ced5..4d6e43e3 100644 --- a/backends/gstreamer/registry_scanner.rs +++ b/backends/gstreamer/registry_scanner.rs @@ -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") { diff --git a/backends/gstreamer/source.rs b/backends/gstreamer/source.rs index bb4e5554..74743dc2 100644 --- a/backends/gstreamer/source.rs +++ b/backends/gstreamer/source.rs @@ -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()) }