From f045099fc135d54a74b7a918e8ffcce5352ad3a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 23 Oct 2022 18:42:58 +0300 Subject: [PATCH] Fix GObject type names, GStreamer debug category names and element factory names Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/198 --- audio/audiofx/src/audioecho/imp.rs | 2 +- audio/audiofx/src/audioloudnorm/imp.rs | 6 +++--- audio/audiofx/src/audioloudnorm/mod.rs | 2 +- audio/audiofx/src/audiornnoise/imp.rs | 2 +- audio/audiofx/src/ebur128level/imp.rs | 4 ++-- audio/audiofx/src/hrtfrender/imp.rs | 2 +- audio/audiofx/tests/audioloudnorm.rs | 4 ++-- audio/claxon/src/claxondec/imp.rs | 2 +- audio/csound/src/filter/imp.rs | 2 +- audio/lewton/src/lewtondec/imp.rs | 2 +- dependencies.py | 6 ++---- generic/file/src/filesink/imp.rs | 2 +- generic/file/src/filesrc/imp.rs | 2 +- generic/sodium/src/decrypter/imp.rs | 2 +- generic/sodium/src/encrypter/imp.rs | 2 +- generic/threadshare/src/appsrc/imp.rs | 2 +- generic/threadshare/src/inputselector/imp.rs | 2 +- generic/threadshare/src/jitterbuffer/imp.rs | 2 +- generic/threadshare/src/proxy/imp.rs | 4 ++-- generic/threadshare/src/queue/imp.rs | 2 +- generic/threadshare/src/tcpclientsrc/imp.rs | 2 +- generic/threadshare/src/udpsink/imp.rs | 2 +- generic/threadshare/src/udpsrc/imp.rs | 2 +- mux/flavors/src/flvdemux/imp.rs | 2 +- net/aws/src/aws_transcribe_parse/imp.rs | 2 +- net/aws/src/aws_transcriber/imp.rs | 2 +- net/aws/src/s3hlssink/imp.rs | 4 ++-- net/aws/src/s3sink/imp.rs | 2 +- net/aws/src/s3src/imp.rs | 2 +- net/ndi/src/device_provider/imp.rs | 2 +- net/onvif/src/onvifmetadataparse/imp.rs | 2 +- net/reqwest/src/reqwesthttpsrc/imp.rs | 4 ++-- net/rtp/src/gcc/imp.rs | 4 ++-- net/webrtc/src/signaller/imp.rs | 2 +- net/webrtc/src/webrtcsink/imp.rs | 2 +- net/webrtchttp/src/whipsink/imp.rs | 2 +- text/json/src/jsongstenc/imp.rs | 2 +- text/json/src/jsongstparse/imp.rs | 2 +- text/json/tests/json.rs | 2 +- text/regex/src/gstregex/imp.rs | 2 +- text/regex/tests/regex.rs | 2 +- text/wrap/src/gsttextwrap/imp.rs | 2 +- text/wrap/tests/textwrap.rs | 2 +- tutorial/src/identity/imp.rs | 2 +- tutorial/src/progressbin/imp.rs | 4 ++-- tutorial/src/rgb2gray/imp.rs | 2 +- tutorial/src/sinesrc/imp.rs | 2 +- tutorial/tutorial-1.md | 4 ++-- tutorial/tutorial-2.md | 2 +- utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs | 2 +- utils/fallbackswitch/src/fallbacksrc/imp.rs | 2 +- utils/fallbackswitch/src/fallbackswitch/imp.rs | 4 ++-- utils/togglerecord/src/togglerecord/imp.rs | 2 +- video/cdg/src/cdgdec/imp.rs | 2 +- video/cdg/src/cdgparse/imp.rs | 2 +- video/closedcaption/src/ccdetect/imp.rs | 2 +- video/closedcaption/src/cea608overlay/imp.rs | 2 +- video/closedcaption/src/cea608tojson/imp.rs | 2 +- video/closedcaption/src/cea608tott/imp.rs | 2 +- video/closedcaption/src/jsontovtt/imp.rs | 2 +- video/closedcaption/src/mcc_enc/imp.rs | 2 +- video/closedcaption/src/mcc_parse/imp.rs | 2 +- video/closedcaption/src/scc_enc/imp.rs | 2 +- video/closedcaption/src/scc_parse/imp.rs | 2 +- video/closedcaption/src/transcriberbin/imp.rs | 2 +- video/closedcaption/src/tttocea608/imp.rs | 2 +- video/closedcaption/src/tttojson/imp.rs | 2 +- video/dav1d/src/dav1ddec/imp.rs | 2 +- video/dav1d/src/dav1ddec/mod.rs | 2 +- video/ffv1/src/ffv1dec/imp.rs | 2 +- video/gif/src/gifenc/imp.rs | 2 +- video/gtk4/src/sink/imp.rs | 2 +- video/gtk4/src/sink/paintable/imp.rs | 2 +- video/hsv/src/hsvdetector/imp.rs | 2 +- video/hsv/src/hsvfilter/imp.rs | 2 +- video/png/src/pngenc/imp.rs | 2 +- video/rav1e/src/rav1enc/imp.rs | 2 +- video/videofx/src/border/imp.rs | 2 +- video/videofx/tests/colordetect.rs | 2 +- video/videofx/tests/videocompare.rs | 4 ++-- video/webp/src/dec/imp.rs | 6 +++--- video/webp/src/dec/mod.rs | 4 ++-- video/webp/tests/webpdec.rs | 2 +- 83 files changed, 99 insertions(+), 101 deletions(-) diff --git a/audio/audiofx/src/audioecho/imp.rs b/audio/audiofx/src/audioecho/imp.rs index 05e07009..cdf553c2 100644 --- a/audio/audiofx/src/audioecho/imp.rs +++ b/audio/audiofx/src/audioecho/imp.rs @@ -87,7 +87,7 @@ impl AudioEcho { #[glib::object_subclass] impl ObjectSubclass for AudioEcho { - const NAME: &'static str = "RsAudioEcho"; + const NAME: &'static str = "GstRsAudioEcho"; type Type = super::AudioEcho; type ParentType = gst_base::BaseTransform; } diff --git a/audio/audiofx/src/audioloudnorm/imp.rs b/audio/audiofx/src/audioloudnorm/imp.rs index b55e7013..b439db20 100644 --- a/audio/audiofx/src/audioloudnorm/imp.rs +++ b/audio/audiofx/src/audioloudnorm/imp.rs @@ -28,9 +28,9 @@ use atomic_refcell::AtomicRefCell; static CAT: Lazy = Lazy::new(|| { gst::DebugCategory::new( - "rsaudioloudnorm", + "audioloudnorm", gst::DebugColorFlags::empty(), - Some("Rust Audio Loudless Normalization Filter"), + Some("Audio Loudless Normalization Filter"), ) }); @@ -1685,7 +1685,7 @@ impl AudioLoudNorm { #[glib::object_subclass] impl ObjectSubclass for AudioLoudNorm { - const NAME: &'static str = "RsAudioLoudNorm"; + const NAME: &'static str = "GstAudioLoudNorm"; type Type = super::AudioLoudNorm; type ParentType = gst::Element; diff --git a/audio/audiofx/src/audioloudnorm/mod.rs b/audio/audiofx/src/audioloudnorm/mod.rs index 1e18750d..81974415 100644 --- a/audio/audiofx/src/audioloudnorm/mod.rs +++ b/audio/audiofx/src/audioloudnorm/mod.rs @@ -18,7 +18,7 @@ glib::wrapper! { pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), - "rsaudioloudnorm", + "audioloudnorm", gst::Rank::None, AudioLoudNorm::static_type(), ) diff --git a/audio/audiofx/src/audiornnoise/imp.rs b/audio/audiofx/src/audiornnoise/imp.rs index 07b5b348..b6641e35 100644 --- a/audio/audiofx/src/audiornnoise/imp.rs +++ b/audio/audiofx/src/audiornnoise/imp.rs @@ -190,7 +190,7 @@ impl AudioRNNoise { #[glib::object_subclass] impl ObjectSubclass for AudioRNNoise { - const NAME: &'static str = "AudioRNNoise"; + const NAME: &'static str = "GstAudioRNNoise"; type Type = super::AudioRNNoise; type ParentType = gst_base::BaseTransform; } diff --git a/audio/audiofx/src/ebur128level/imp.rs b/audio/audiofx/src/ebur128level/imp.rs index 1271bfb4..1afb5f2a 100644 --- a/audio/audiofx/src/ebur128level/imp.rs +++ b/audio/audiofx/src/ebur128level/imp.rs @@ -32,7 +32,7 @@ static CAT: Lazy = Lazy::new(|| { ) }); -#[glib::flags(name = "EbuR128LevelMode")] +#[glib::flags(name = "GstEbuR128LevelMode")] pub(crate) enum Mode { #[flags_value(name = "Calculate momentary loudness (400ms)", nick = "momentary")] MOMENTARY = 0b00000001, @@ -116,7 +116,7 @@ pub struct EbuR128Level { #[glib::object_subclass] impl ObjectSubclass for EbuR128Level { - const NAME: &'static str = "EbuR128Level"; + const NAME: &'static str = "GstEbuR128Level"; type Type = super::EbuR128Level; type ParentType = gst_base::BaseTransform; } diff --git a/audio/audiofx/src/hrtfrender/imp.rs b/audio/audiofx/src/hrtfrender/imp.rs index c78878d3..38696588 100644 --- a/audio/audiofx/src/hrtfrender/imp.rs +++ b/audio/audiofx/src/hrtfrender/imp.rs @@ -209,7 +209,7 @@ pub struct HrtfRender { #[glib::object_subclass] impl ObjectSubclass for HrtfRender { - const NAME: &'static str = "HrtfRender"; + const NAME: &'static str = "GstHrtfRender"; type Type = super::HrtfRender; type ParentType = gst_base::BaseTransform; } diff --git a/audio/audiofx/tests/audioloudnorm.rs b/audio/audiofx/tests/audioloudnorm.rs index 2e6973ed..7e9d878e 100644 --- a/audio/audiofx/tests/audioloudnorm.rs +++ b/audio/audiofx/tests/audioloudnorm.rs @@ -40,7 +40,7 @@ fn run_test( let pipeline = if let Some(second_input) = second_input { gst::parse_launch(&format!( - "audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! audiomixer name=mixer output-buffer-duration={output_buffer_duration} ! {format} ! rsaudioloudnorm ! appsink name=sink audiotestsrc {second_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! mixer.", + "audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! audiomixer name=mixer output-buffer-duration={output_buffer_duration} ! {format} ! audioloudnorm ! appsink name=sink audiotestsrc {second_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! mixer.", first_input = first_input, second_input = second_input, num_buffers = num_buffers, @@ -50,7 +50,7 @@ fn run_test( )) } else { gst::parse_launch(&format!( - "audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! rsaudioloudnorm ! appsink name=sink", + "audiotestsrc {first_input} num-buffers={num_buffers} samplesperbuffer={samples_per_buffer} ! {format} ! audioloudnorm ! appsink name=sink", first_input = first_input, num_buffers = num_buffers, samples_per_buffer = samples_per_buffer, diff --git a/audio/claxon/src/claxondec/imp.rs b/audio/claxon/src/claxondec/imp.rs index 5fef53e3..e48f0d99 100644 --- a/audio/claxon/src/claxondec/imp.rs +++ b/audio/claxon/src/claxondec/imp.rs @@ -40,7 +40,7 @@ pub struct ClaxonDec { #[glib::object_subclass] impl ObjectSubclass for ClaxonDec { - const NAME: &'static str = "ClaxonDec"; + const NAME: &'static str = "GstClaxonDec"; type Type = super::ClaxonDec; type ParentType = gst_audio::AudioDecoder; } diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs index f3bee578..06027882 100644 --- a/audio/csound/src/filter/imp.rs +++ b/audio/csound/src/filter/imp.rs @@ -299,7 +299,7 @@ impl CsoundFilter { #[glib::object_subclass] impl ObjectSubclass for CsoundFilter { - const NAME: &'static str = "CsoundFilter"; + const NAME: &'static str = "GstCsoundFilter"; type Type = super::CsoundFilter; type ParentType = gst_base::BaseTransform; diff --git a/audio/lewton/src/lewtondec/imp.rs b/audio/lewton/src/lewtondec/imp.rs index f58d8553..eb6e63f4 100644 --- a/audio/lewton/src/lewtondec/imp.rs +++ b/audio/lewton/src/lewtondec/imp.rs @@ -47,7 +47,7 @@ static CAT: Lazy = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for LewtonDec { - const NAME: &'static str = "LewtonDec"; + const NAME: &'static str = "GstLewtonDec"; type Type = super::LewtonDec; type ParentType = gst_audio::AudioDecoder; } diff --git a/dependencies.py b/dependencies.py index e378c842..eff6729b 100755 --- a/dependencies.py +++ b/dependencies.py @@ -28,16 +28,14 @@ RENAMES = { 'rsflv': 'flavors', 'rsrtp': 'rtp', 'rswebp': 'webp', - 'textahead': 'ahead', - 'textwrap': 'wrap', 'rsonvif': 'onvif', 'rstracers': 'tracers', 'rsclosedcaption': 'closedcaption', - 'rsdav1d': 'dav1d', - 'webrtchttp': 'webrtc-http', 'rswebrtc': 'webrtc', 'rspng': 'png', 'rsvideofx': 'videofx', + 'textahead': 'ahead', + 'textwrap': 'wrap', } diff --git a/generic/file/src/filesink/imp.rs b/generic/file/src/filesink/imp.rs index 437b1370..8d31dcba 100644 --- a/generic/file/src/filesink/imp.rs +++ b/generic/file/src/filesink/imp.rs @@ -105,7 +105,7 @@ impl FileSink { #[glib::object_subclass] impl ObjectSubclass for FileSink { - const NAME: &'static str = "RsFileSink"; + const NAME: &'static str = "GstRsFileSink"; type Type = super::FileSink; type ParentType = gst_base::BaseSink; type Interfaces = (gst::URIHandler,); diff --git a/generic/file/src/filesrc/imp.rs b/generic/file/src/filesrc/imp.rs index be08200d..471e0e8e 100644 --- a/generic/file/src/filesrc/imp.rs +++ b/generic/file/src/filesrc/imp.rs @@ -119,7 +119,7 @@ impl FileSrc { #[glib::object_subclass] impl ObjectSubclass for FileSrc { - const NAME: &'static str = "RsFileSrc"; + const NAME: &'static str = "GstRsFileSrc"; type Type = super::FileSrc; type ParentType = gst_base::BaseSrc; type Interfaces = (gst::URIHandler,); diff --git a/generic/sodium/src/decrypter/imp.rs b/generic/sodium/src/decrypter/imp.rs index ce9d638e..d581970a 100644 --- a/generic/sodium/src/decrypter/imp.rs +++ b/generic/sodium/src/decrypter/imp.rs @@ -522,7 +522,7 @@ impl Decrypter { #[glib::object_subclass] impl ObjectSubclass for Decrypter { - const NAME: &'static str = "RsSodiumDecryptor"; + const NAME: &'static str = "GstSodiumDecryptor"; type Type = super::Decrypter; type ParentType = gst::Element; diff --git a/generic/sodium/src/encrypter/imp.rs b/generic/sodium/src/encrypter/imp.rs index fd121c2e..a6a96dd4 100644 --- a/generic/sodium/src/encrypter/imp.rs +++ b/generic/sodium/src/encrypter/imp.rs @@ -325,7 +325,7 @@ impl Encrypter { #[glib::object_subclass] impl ObjectSubclass for Encrypter { - const NAME: &'static str = "RsSodiumEncrypter"; + const NAME: &'static str = "GstSodiumEncrypter"; type Type = super::Encrypter; type ParentType = gst::Element; diff --git a/generic/threadshare/src/appsrc/imp.rs b/generic/threadshare/src/appsrc/imp.rs index b5636e08..a6dd62c9 100644 --- a/generic/threadshare/src/appsrc/imp.rs +++ b/generic/threadshare/src/appsrc/imp.rs @@ -425,7 +425,7 @@ impl AppSrc { #[glib::object_subclass] impl ObjectSubclass for AppSrc { - const NAME: &'static str = "RsTsAppSrc"; + const NAME: &'static str = "GstTsAppSrc"; type Type = super::AppSrc; type ParentType = gst::Element; diff --git a/generic/threadshare/src/inputselector/imp.rs b/generic/threadshare/src/inputselector/imp.rs index c3e005ee..2f252331 100644 --- a/generic/threadshare/src/inputselector/imp.rs +++ b/generic/threadshare/src/inputselector/imp.rs @@ -353,7 +353,7 @@ impl InputSelector { #[glib::object_subclass] impl ObjectSubclass for InputSelector { - const NAME: &'static str = "RsTsInputSelector"; + const NAME: &'static str = "GstTsInputSelector"; type Type = super::InputSelector; type ParentType = gst::Element; diff --git a/generic/threadshare/src/jitterbuffer/imp.rs b/generic/threadshare/src/jitterbuffer/imp.rs index 44cd903b..b736aa98 100644 --- a/generic/threadshare/src/jitterbuffer/imp.rs +++ b/generic/threadshare/src/jitterbuffer/imp.rs @@ -1299,7 +1299,7 @@ impl JitterBuffer { #[glib::object_subclass] impl ObjectSubclass for JitterBuffer { - const NAME: &'static str = "RsTsJitterBuffer"; + const NAME: &'static str = "GstTsJitterBuffer"; type Type = super::JitterBuffer; type ParentType = gst::Element; diff --git a/generic/threadshare/src/proxy/imp.rs b/generic/threadshare/src/proxy/imp.rs index 862e0730..0003dc0e 100644 --- a/generic/threadshare/src/proxy/imp.rs +++ b/generic/threadshare/src/proxy/imp.rs @@ -535,7 +535,7 @@ impl ProxySink { #[glib::object_subclass] impl ObjectSubclass for ProxySink { - const NAME: &'static str = "RsTsProxySink"; + const NAME: &'static str = "GstTsProxySink"; type Type = super::ProxySink; type ParentType = gst::Element; @@ -1041,7 +1041,7 @@ impl ProxySrc { #[glib::object_subclass] impl ObjectSubclass for ProxySrc { - const NAME: &'static str = "RsTsProxySrc"; + const NAME: &'static str = "GstTsProxySrc"; type Type = super::ProxySrc; type ParentType = gst::Element; diff --git a/generic/threadshare/src/queue/imp.rs b/generic/threadshare/src/queue/imp.rs index 93ba22e1..53e93333 100644 --- a/generic/threadshare/src/queue/imp.rs +++ b/generic/threadshare/src/queue/imp.rs @@ -627,7 +627,7 @@ impl Queue { #[glib::object_subclass] impl ObjectSubclass for Queue { - const NAME: &'static str = "RsTsQueue"; + const NAME: &'static str = "GstTsQueue"; type Type = super::Queue; type ParentType = gst::Element; diff --git a/generic/threadshare/src/tcpclientsrc/imp.rs b/generic/threadshare/src/tcpclientsrc/imp.rs index f616407d..ad57b811 100644 --- a/generic/threadshare/src/tcpclientsrc/imp.rs +++ b/generic/threadshare/src/tcpclientsrc/imp.rs @@ -477,7 +477,7 @@ impl TcpClientSrc { #[glib::object_subclass] impl ObjectSubclass for TcpClientSrc { - const NAME: &'static str = "RsTsTcpClientSrc"; + const NAME: &'static str = "GstTsTcpClientSrc"; type Type = super::TcpClientSrc; type ParentType = gst::Element; diff --git a/generic/threadshare/src/udpsink/imp.rs b/generic/threadshare/src/udpsink/imp.rs index efb0da6e..33a0a3f0 100644 --- a/generic/threadshare/src/udpsink/imp.rs +++ b/generic/threadshare/src/udpsink/imp.rs @@ -924,7 +924,7 @@ fn try_into_socket_addr(imp: &UdpSink, host: &str, port: i32) -> Result = Lazy::new(|| { gst::DebugCategory::new( - "s3hlssink", + "awss3hlssink", gst::DebugColorFlags::empty(), Some("S3 HLS sink"), ) @@ -404,7 +404,7 @@ impl S3HlsSink { #[glib::object_subclass] impl ObjectSubclass for S3HlsSink { - const NAME: &'static str = "S3HlsSink"; + const NAME: &'static str = "GstAwsS3HlsSink"; type Type = super::S3HlsSink; type ParentType = gst::Bin; diff --git a/net/aws/src/s3sink/imp.rs b/net/aws/src/s3sink/imp.rs index d53ec2c1..6a9d61a0 100644 --- a/net/aws/src/s3sink/imp.rs +++ b/net/aws/src/s3sink/imp.rs @@ -636,7 +636,7 @@ impl S3Sink { #[glib::object_subclass] impl ObjectSubclass for S3Sink { - const NAME: &'static str = "AwsS3Sink"; + const NAME: &'static str = "GstAwsS3Sink"; type Type = super::S3Sink; type ParentType = gst_base::BaseSink; type Interfaces = (gst::URIHandler,); diff --git a/net/aws/src/s3src/imp.rs b/net/aws/src/s3src/imp.rs index 54e0ea80..93308ccd 100644 --- a/net/aws/src/s3src/imp.rs +++ b/net/aws/src/s3src/imp.rs @@ -277,7 +277,7 @@ impl S3Src { #[glib::object_subclass] impl ObjectSubclass for S3Src { - const NAME: &'static str = "AwsS3Src"; + const NAME: &'static str = "GstAwsS3Src"; type Type = super::S3Src; type ParentType = gst_base::BaseSrc; type Interfaces = (gst::URIHandler,); diff --git a/net/ndi/src/device_provider/imp.rs b/net/ndi/src/device_provider/imp.rs index 87aa2bb1..d99091e0 100644 --- a/net/ndi/src/device_provider/imp.rs +++ b/net/ndi/src/device_provider/imp.rs @@ -197,7 +197,7 @@ pub struct Device { #[glib::object_subclass] impl ObjectSubclass for Device { - const NAME: &'static str = "NdiDevice"; + const NAME: &'static str = "GstNdiDevice"; type Type = super::Device; type ParentType = gst::Device; diff --git a/net/onvif/src/onvifmetadataparse/imp.rs b/net/onvif/src/onvifmetadataparse/imp.rs index 3833d2b9..b2ff1012 100644 --- a/net/onvif/src/onvifmetadataparse/imp.rs +++ b/net/onvif/src/onvifmetadataparse/imp.rs @@ -1401,7 +1401,7 @@ impl OnvifMetadataParse { #[glib::object_subclass] impl ObjectSubclass for OnvifMetadataParse { - const NAME: &'static str = "OnvifMetadataParse"; + const NAME: &'static str = "GstOnvifMetadataParse"; type Type = super::OnvifMetadataParse; type ParentType = gst::Element; diff --git a/net/reqwest/src/reqwesthttpsrc/imp.rs b/net/reqwest/src/reqwesthttpsrc/imp.rs index 5874d9b1..42d45674 100644 --- a/net/reqwest/src/reqwesthttpsrc/imp.rs +++ b/net/reqwest/src/reqwesthttpsrc/imp.rs @@ -114,7 +114,7 @@ fn proxy_from_str(s: Option) -> Result, glib::Error> { const REQWEST_CLIENT_CONTEXT: &str = "gst.reqwest.client"; #[derive(Clone, Debug, glib::Boxed)] -#[boxed_type(name = "ReqwestClientContext")] +#[boxed_type(name = "GstReqwestClientContext")] struct ClientContext(Arc); #[derive(Debug)] @@ -1280,7 +1280,7 @@ impl URIHandlerImpl for ReqwestHttpSrc { #[glib::object_subclass] impl ObjectSubclass for ReqwestHttpSrc { - const NAME: &'static str = "ReqwestHttpSrc"; + const NAME: &'static str = "GstReqwestHttpSrc"; type Type = super::ReqwestHttpSrc; type ParentType = gst_base::PushSrc; type Interfaces = (gst::URIHandler,); diff --git a/net/rtp/src/gcc/imp.rs b/net/rtp/src/gcc/imp.rs index 4899e8ea..09f82c5d 100644 --- a/net/rtp/src/gcc/imp.rs +++ b/net/rtp/src/gcc/imp.rs @@ -41,7 +41,7 @@ const DEFAULT_MAX_BITRATE: Bitrate = 8_192_000; static CAT: Lazy = Lazy::new(|| { gst::DebugCategory::new( - "gcc", + "rtpgccbwe", gst::DebugColorFlags::empty(), Some("Google Congestion Controller based bandwidth estimator"), ) @@ -1146,7 +1146,7 @@ impl BandwidthEstimator { #[glib::object_subclass] impl ObjectSubclass for BandwidthEstimator { - const NAME: &'static str = "GstRTPGCCBwE"; + const NAME: &'static str = "GstRtpGCCBwE"; type Type = super::BandwidthEstimator; type ParentType = gst::Element; diff --git a/net/webrtc/src/signaller/imp.rs b/net/webrtc/src/signaller/imp.rs index 5757063c..145d27c5 100644 --- a/net/webrtc/src/signaller/imp.rs +++ b/net/webrtc/src/signaller/imp.rs @@ -363,7 +363,7 @@ impl Signaller { #[glib::object_subclass] impl ObjectSubclass for Signaller { - const NAME: &'static str = "GstRSWebRTCSinkSignaller"; + const NAME: &'static str = "GstWebRTCSinkSignaller"; type Type = super::Signaller; type ParentType = glib::Object; } diff --git a/net/webrtc/src/webrtcsink/imp.rs b/net/webrtc/src/webrtcsink/imp.rs index 58727984..e9f2b240 100644 --- a/net/webrtc/src/webrtcsink/imp.rs +++ b/net/webrtc/src/webrtcsink/imp.rs @@ -2325,7 +2325,7 @@ impl WebRTCSink { #[glib::object_subclass] impl ObjectSubclass for WebRTCSink { - const NAME: &'static str = "GstRSWebRTCSink"; + const NAME: &'static str = "GstWebRTCSink"; type Type = super::WebRTCSink; type ParentType = gst::Bin; type Interfaces = (gst::ChildProxy, gst_video::Navigation); diff --git a/net/webrtchttp/src/whipsink/imp.rs b/net/webrtchttp/src/whipsink/imp.rs index 27a3fa42..b2361397 100644 --- a/net/webrtchttp/src/whipsink/imp.rs +++ b/net/webrtchttp/src/whipsink/imp.rs @@ -354,7 +354,7 @@ impl ObjectImpl for WhipSink { #[glib::object_subclass] impl ObjectSubclass for WhipSink { - const NAME: &'static str = "WhipSink"; + const NAME: &'static str = "GstWhipSink"; type Type = super::WhipSink; type ParentType = gst::Bin; } diff --git a/text/json/src/jsongstenc/imp.rs b/text/json/src/jsongstenc/imp.rs index 19e4ad4f..fd367678 100644 --- a/text/json/src/jsongstenc/imp.rs +++ b/text/json/src/jsongstenc/imp.rs @@ -177,7 +177,7 @@ impl JsonGstEnc { #[glib::object_subclass] impl ObjectSubclass for JsonGstEnc { - const NAME: &'static str = "RsJsonGstEnc"; + const NAME: &'static str = "GstJsonGstEnc"; type Type = super::JsonGstEnc; type ParentType = gst::Element; diff --git a/text/json/src/jsongstparse/imp.rs b/text/json/src/jsongstparse/imp.rs index a34f7247..9391ad38 100644 --- a/text/json/src/jsongstparse/imp.rs +++ b/text/json/src/jsongstparse/imp.rs @@ -818,7 +818,7 @@ impl JsonGstParse { #[glib::object_subclass] impl ObjectSubclass for JsonGstParse { - const NAME: &'static str = "RsJsonGstParse"; + const NAME: &'static str = "GstJsonGstParse"; type Type = super::JsonGstParse; type ParentType = gst::Element; diff --git a/text/json/tests/json.rs b/text/json/tests/json.rs index 759649b6..1703269d 100644 --- a/text/json/tests/json.rs +++ b/text/json/tests/json.rs @@ -16,7 +16,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstrsjson::plugin_register_static().expect("json test"); + gstjson::plugin_register_static().expect("json test"); }); } diff --git a/text/regex/src/gstregex/imp.rs b/text/regex/src/gstregex/imp.rs index be77ccf4..73a3c969 100644 --- a/text/regex/src/gstregex/imp.rs +++ b/text/regex/src/gstregex/imp.rs @@ -105,7 +105,7 @@ impl RegEx { #[glib::object_subclass] impl ObjectSubclass for RegEx { - const NAME: &'static str = "RsRegEx"; + const NAME: &'static str = "GstRegEx"; type Type = super::RegEx; type ParentType = gst::Element; diff --git a/text/regex/tests/regex.rs b/text/regex/tests/regex.rs index 25871c4b..fc0508e1 100644 --- a/text/regex/tests/regex.rs +++ b/text/regex/tests/regex.rs @@ -14,7 +14,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstrsregex::plugin_register_static().expect("regex test"); + gstregex::plugin_register_static().expect("regex test"); }); } diff --git a/text/wrap/src/gsttextwrap/imp.rs b/text/wrap/src/gsttextwrap/imp.rs index a6bfaa62..cf779937 100644 --- a/text/wrap/src/gsttextwrap/imp.rs +++ b/text/wrap/src/gsttextwrap/imp.rs @@ -395,7 +395,7 @@ impl TextWrap { #[glib::object_subclass] impl ObjectSubclass for TextWrap { - const NAME: &'static str = "RsTextWrap"; + const NAME: &'static str = "GstTextWrap"; type Type = super::TextWrap; type ParentType = gst::Element; diff --git a/text/wrap/tests/textwrap.rs b/text/wrap/tests/textwrap.rs index 9adf1cc4..ba8d8cb5 100644 --- a/text/wrap/tests/textwrap.rs +++ b/text/wrap/tests/textwrap.rs @@ -14,7 +14,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstrstextwrap::plugin_register_static().expect("textwrap test"); + gsttextwrap::plugin_register_static().expect("textwrap test"); }); } diff --git a/tutorial/src/identity/imp.rs b/tutorial/src/identity/imp.rs index 49e40ccb..35442d87 100644 --- a/tutorial/src/identity/imp.rs +++ b/tutorial/src/identity/imp.rs @@ -105,7 +105,7 @@ impl Identity { // up the class data #[glib::object_subclass] impl ObjectSubclass for Identity { - const NAME: &'static str = "RsIdentity"; + const NAME: &'static str = "GstRsIdentity"; type Type = super::Identity; type ParentType = gst::Element; diff --git a/tutorial/src/progressbin/imp.rs b/tutorial/src/progressbin/imp.rs index 3bc94c40..5dad1232 100644 --- a/tutorial/src/progressbin/imp.rs +++ b/tutorial/src/progressbin/imp.rs @@ -23,7 +23,7 @@ const DEFAULT_OUTPUT_TYPE: ProgressBinOutput = ProgressBinOutput::Println; static CAT: Lazy = Lazy::new(|| { gst::DebugCategory::new( - "progressbin", + "rsprogressbin", gst::DebugColorFlags::empty(), Some("Rust Progress Reporter"), ) @@ -45,7 +45,7 @@ pub struct ProgressBin { // up the class data #[glib::object_subclass] impl ObjectSubclass for ProgressBin { - const NAME: &'static str = "RsProgressBin"; + const NAME: &'static str = "GstRsProgressBin"; type Type = super::ProgressBin; type ParentType = gst::Bin; diff --git a/tutorial/src/rgb2gray/imp.rs b/tutorial/src/rgb2gray/imp.rs index 70e93665..37e2ad5f 100644 --- a/tutorial/src/rgb2gray/imp.rs +++ b/tutorial/src/rgb2gray/imp.rs @@ -86,7 +86,7 @@ impl Rgb2Gray { // up the class data #[glib::object_subclass] impl ObjectSubclass for Rgb2Gray { - const NAME: &'static str = "RsRgb2Gray"; + const NAME: &'static str = "GstRsRgb2Gray"; type Type = super::Rgb2Gray; type ParentType = gst_video::VideoFilter; } diff --git a/tutorial/src/sinesrc/imp.rs b/tutorial/src/sinesrc/imp.rs index 38811fc4..2fdba9e7 100644 --- a/tutorial/src/sinesrc/imp.rs +++ b/tutorial/src/sinesrc/imp.rs @@ -157,7 +157,7 @@ impl SineSrc { // up the class data #[glib::object_subclass] impl ObjectSubclass for SineSrc { - const NAME: &'static str = "RsSineSrc"; + const NAME: &'static str = "GstRsSineSrc"; type Type = super::SineSrc; type ParentType = gst_base::PushSrc; } diff --git a/tutorial/tutorial-1.md b/tutorial/tutorial-1.md index d80d9b81..9a1d606e 100644 --- a/tutorial/tutorial-1.md +++ b/tutorial/tutorial-1.md @@ -168,7 +168,7 @@ impl Rgb2Gray {} #[glib::object_subclass] impl ObjectSubclass for Rgb2Gray { - const NAME: &'static str = "RsRgb2Gray"; + const NAME: &'static str = "GstRsRgb2Gray"; type Type = super::Rgb2Gray; type ParentType = gst_base::BaseTransform; } @@ -268,7 +268,7 @@ impl Rgb2Gray {} #[glib::object_subclass] impl ObjectSubclass for Rgb2Gray { - const NAME: &'static str = "RsRgb2Gray"; + const NAME: &'static str = "GstRsRgb2Gray"; type Type = super::Rgb2Gray; type ParentType = gst_base::BaseTransform; } diff --git a/tutorial/tutorial-2.md b/tutorial/tutorial-2.md index 7934a0c4..2c94a3c9 100644 --- a/tutorial/tutorial-2.md +++ b/tutorial/tutorial-2.md @@ -105,7 +105,7 @@ pub struct SineSrc { #[glib::object_subclass] impl ObjectSubclass for SineSrc { - const NAME: &'static str = "RsSineSrc"; + const NAME: &'static str = "GstRsSineSrc"; type Type = super::SineSrc; type ParentType = gst_base::PushSrc; diff --git a/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs b/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs index fdbefedd..b0b7cc24 100644 --- a/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/custom_source/imp.rs @@ -49,7 +49,7 @@ pub struct CustomSource { #[glib::object_subclass] impl ObjectSubclass for CustomSource { - const NAME: &'static str = "FallbackSrcCustomSource"; + const NAME: &'static str = "GstFallbackSrcCustomSource"; type Type = super::CustomSource; type ParentType = gst::Bin; } diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs index becee9a0..ebb46447 100644 --- a/utils/fallbackswitch/src/fallbacksrc/imp.rs +++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs @@ -223,7 +223,7 @@ pub struct FallbackSrc { #[glib::object_subclass] impl ObjectSubclass for FallbackSrc { - const NAME: &'static str = "FallbackSrc"; + const NAME: &'static str = "GstFallbackSrc"; type Type = super::FallbackSrc; type ParentType = gst::Bin; } diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs index f9479a5e..8d6c6881 100644 --- a/utils/fallbackswitch/src/fallbackswitch/imp.rs +++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs @@ -118,7 +118,7 @@ pub struct FallbackSwitchSinkPad { #[glib::object_subclass] impl ObjectSubclass for FallbackSwitchSinkPad { - const NAME: &'static str = "FallbackSwitchSinkPad"; + const NAME: &'static str = "GstFallbackSwitchSinkPad"; type Type = super::FallbackSwitchSinkPad; type ParentType = gst::Pad; @@ -1036,7 +1036,7 @@ impl FallbackSwitch { #[glib::object_subclass] impl ObjectSubclass for FallbackSwitch { - const NAME: &'static str = "FallbackSwitch"; + const NAME: &'static str = "GstFallbackSwitch"; type Type = super::FallbackSwitch; type ParentType = gst::Element; type Interfaces = (gst::ChildProxy,); diff --git a/utils/togglerecord/src/togglerecord/imp.rs b/utils/togglerecord/src/togglerecord/imp.rs index ed9a47bf..24b193a1 100644 --- a/utils/togglerecord/src/togglerecord/imp.rs +++ b/utils/togglerecord/src/togglerecord/imp.rs @@ -1699,7 +1699,7 @@ impl ToggleRecord { #[glib::object_subclass] impl ObjectSubclass for ToggleRecord { - const NAME: &'static str = "RsToggleRecord"; + const NAME: &'static str = "GstToggleRecord"; type Type = super::ToggleRecord; type ParentType = gst::Element; diff --git a/video/cdg/src/cdgdec/imp.rs b/video/cdg/src/cdgdec/imp.rs index 141002a4..d88212c8 100644 --- a/video/cdg/src/cdgdec/imp.rs +++ b/video/cdg/src/cdgdec/imp.rs @@ -30,7 +30,7 @@ pub struct CdgDec { #[glib::object_subclass] impl ObjectSubclass for CdgDec { - const NAME: &'static str = "CdgDec"; + const NAME: &'static str = "GstCdgDec"; type Type = super::CdgDec; type ParentType = gst_video::VideoDecoder; } diff --git a/video/cdg/src/cdgparse/imp.rs b/video/cdg/src/cdgparse/imp.rs index 4cf32b5f..1e036bf4 100644 --- a/video/cdg/src/cdgparse/imp.rs +++ b/video/cdg/src/cdgparse/imp.rs @@ -36,7 +36,7 @@ static CAT: Lazy = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for CdgParse { - const NAME: &'static str = "CdgParse"; + const NAME: &'static str = "GstCdgParse"; type Type = super::CdgParse; type ParentType = gst_base::BaseParse; } diff --git a/video/closedcaption/src/ccdetect/imp.rs b/video/closedcaption/src/ccdetect/imp.rs index d8fcf5b3..b54b27e5 100644 --- a/video/closedcaption/src/ccdetect/imp.rs +++ b/video/closedcaption/src/ccdetect/imp.rs @@ -220,7 +220,7 @@ impl CCDetect { #[glib::object_subclass] impl ObjectSubclass for CCDetect { - const NAME: &'static str = "CCDetect"; + const NAME: &'static str = "GstCCDetect"; type Type = super::CCDetect; type ParentType = gst_base::BaseTransform; } diff --git a/video/closedcaption/src/cea608overlay/imp.rs b/video/closedcaption/src/cea608overlay/imp.rs index dccaf568..96d4be30 100644 --- a/video/closedcaption/src/cea608overlay/imp.rs +++ b/video/closedcaption/src/cea608overlay/imp.rs @@ -516,7 +516,7 @@ impl Cea608Overlay { #[glib::object_subclass] impl ObjectSubclass for Cea608Overlay { - const NAME: &'static str = "RsCea608Overlay"; + const NAME: &'static str = "GstCea608Overlay"; type Type = super::Cea608Overlay; type ParentType = gst::Element; diff --git a/video/closedcaption/src/cea608tojson/imp.rs b/video/closedcaption/src/cea608tojson/imp.rs index d3bfb8e8..e54d0ad2 100644 --- a/video/closedcaption/src/cea608tojson/imp.rs +++ b/video/closedcaption/src/cea608tojson/imp.rs @@ -951,7 +951,7 @@ impl Cea608ToJson { #[glib::object_subclass] impl ObjectSubclass for Cea608ToJson { - const NAME: &'static str = "Cea608ToJson"; + const NAME: &'static str = "GstCea608ToJson"; type Type = super::Cea608ToJson; type ParentType = gst::Element; diff --git a/video/closedcaption/src/cea608tott/imp.rs b/video/closedcaption/src/cea608tott/imp.rs index c7231643..b6fd7ce9 100644 --- a/video/closedcaption/src/cea608tott/imp.rs +++ b/video/closedcaption/src/cea608tott/imp.rs @@ -373,7 +373,7 @@ impl Cea608ToTt { #[glib::object_subclass] impl ObjectSubclass for Cea608ToTt { - const NAME: &'static str = "Cea608ToTt"; + const NAME: &'static str = "GstCea608ToTt"; type Type = super::Cea608ToTt; type ParentType = gst::Element; diff --git a/video/closedcaption/src/jsontovtt/imp.rs b/video/closedcaption/src/jsontovtt/imp.rs index 3f28c416..11e9f323 100644 --- a/video/closedcaption/src/jsontovtt/imp.rs +++ b/video/closedcaption/src/jsontovtt/imp.rs @@ -531,7 +531,7 @@ impl JsonToVtt { #[glib::object_subclass] impl ObjectSubclass for JsonToVtt { - const NAME: &'static str = "JsonToVtt"; + const NAME: &'static str = "GstJsonToVtt"; type Type = super::JsonToVtt; type ParentType = gst::Element; diff --git a/video/closedcaption/src/mcc_enc/imp.rs b/video/closedcaption/src/mcc_enc/imp.rs index d6112de9..3d1e24de 100644 --- a/video/closedcaption/src/mcc_enc/imp.rs +++ b/video/closedcaption/src/mcc_enc/imp.rs @@ -415,7 +415,7 @@ impl MccEnc { #[glib::object_subclass] impl ObjectSubclass for MccEnc { - const NAME: &'static str = "RsMccEnc"; + const NAME: &'static str = "GstMccEnc"; type Type = super::MccEnc; type ParentType = gst::Element; diff --git a/video/closedcaption/src/mcc_parse/imp.rs b/video/closedcaption/src/mcc_parse/imp.rs index 16d0558f..4c23a599 100644 --- a/video/closedcaption/src/mcc_parse/imp.rs +++ b/video/closedcaption/src/mcc_parse/imp.rs @@ -1068,7 +1068,7 @@ impl MccParse { #[glib::object_subclass] impl ObjectSubclass for MccParse { - const NAME: &'static str = "RsMccParse"; + const NAME: &'static str = "GstMccParse"; type Type = super::MccParse; type ParentType = gst::Element; diff --git a/video/closedcaption/src/scc_enc/imp.rs b/video/closedcaption/src/scc_enc/imp.rs index 4fa33191..a6825ea8 100644 --- a/video/closedcaption/src/scc_enc/imp.rs +++ b/video/closedcaption/src/scc_enc/imp.rs @@ -349,7 +349,7 @@ impl SccEnc { #[glib::object_subclass] impl ObjectSubclass for SccEnc { - const NAME: &'static str = "RsSccEnc"; + const NAME: &'static str = "GstSccEnc"; type Type = super::SccEnc; type ParentType = gst::Element; diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs index 9aafb49c..61a02563 100644 --- a/video/closedcaption/src/scc_parse/imp.rs +++ b/video/closedcaption/src/scc_parse/imp.rs @@ -947,7 +947,7 @@ impl SccParse { #[glib::object_subclass] impl ObjectSubclass for SccParse { - const NAME: &'static str = "RsSccParse"; + const NAME: &'static str = "GstSccParse"; type Type = super::SccParse; type ParentType = gst::Element; diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs index ef8852c7..56e8ecd3 100644 --- a/video/closedcaption/src/transcriberbin/imp.rs +++ b/video/closedcaption/src/transcriberbin/imp.rs @@ -529,7 +529,7 @@ impl TranscriberBin { #[glib::object_subclass] impl ObjectSubclass for TranscriberBin { - const NAME: &'static str = "RsTranscriberBin"; + const NAME: &'static str = "GstTranscriberBin"; type Type = super::TranscriberBin; type ParentType = gst::Bin; diff --git a/video/closedcaption/src/tttocea608/imp.rs b/video/closedcaption/src/tttocea608/imp.rs index ee89f42a..b7e9a82c 100644 --- a/video/closedcaption/src/tttocea608/imp.rs +++ b/video/closedcaption/src/tttocea608/imp.rs @@ -959,7 +959,7 @@ impl TtToCea608 { #[glib::object_subclass] impl ObjectSubclass for TtToCea608 { - const NAME: &'static str = "TtToCea608"; + const NAME: &'static str = "GstTtToCea608"; type Type = super::TtToCea608; type ParentType = gst::Element; diff --git a/video/closedcaption/src/tttojson/imp.rs b/video/closedcaption/src/tttojson/imp.rs index 87b2636f..8a8e2196 100644 --- a/video/closedcaption/src/tttojson/imp.rs +++ b/video/closedcaption/src/tttojson/imp.rs @@ -185,7 +185,7 @@ impl ElementImpl for TtToJson { #[glib::object_subclass] impl ObjectSubclass for TtToJson { - const NAME: &'static str = "RsTtToJson"; + const NAME: &'static str = "GstTtToJson"; type Type = super::TtToJson; type ParentType = gst::Element; diff --git a/video/dav1d/src/dav1ddec/imp.rs b/video/dav1d/src/dav1ddec/imp.rs index 1fa7ea8a..cdaabd1d 100644 --- a/video/dav1d/src/dav1ddec/imp.rs +++ b/video/dav1d/src/dav1ddec/imp.rs @@ -475,7 +475,7 @@ fn video_output_formats() -> impl IntoIterator { #[glib::object_subclass] impl ObjectSubclass for Dav1dDec { - const NAME: &'static str = "RsDav1dDec"; + const NAME: &'static str = "GstDav1dDec"; type Type = super::Dav1dDec; type ParentType = gst_video::VideoDecoder; } diff --git a/video/dav1d/src/dav1ddec/mod.rs b/video/dav1d/src/dav1ddec/mod.rs index b439c693..8d427128 100644 --- a/video/dav1d/src/dav1ddec/mod.rs +++ b/video/dav1d/src/dav1ddec/mod.rs @@ -20,7 +20,7 @@ glib::wrapper! { pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), - "rsdav1ddec", + "dav1ddec", gst::Rank::Primary + 1, Dav1dDec::static_type(), ) diff --git a/video/ffv1/src/ffv1dec/imp.rs b/video/ffv1/src/ffv1dec/imp.rs index 6fcfd6b4..086be543 100644 --- a/video/ffv1/src/ffv1dec/imp.rs +++ b/video/ffv1/src/ffv1dec/imp.rs @@ -291,7 +291,7 @@ static CAT: Lazy = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for Ffv1Dec { - const NAME: &'static str = "Ffv1Dec"; + const NAME: &'static str = "GstFfv1Dec"; type Type = super::Ffv1Dec; type ParentType = gst_video::VideoDecoder; } diff --git a/video/gif/src/gifenc/imp.rs b/video/gif/src/gifenc/imp.rs index 043fa114..57ca4a49 100644 --- a/video/gif/src/gifenc/imp.rs +++ b/video/gif/src/gifenc/imp.rs @@ -137,7 +137,7 @@ static CAT: Lazy = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for GifEnc { - const NAME: &'static str = "GifEnc"; + const NAME: &'static str = "GstGifEnc"; type Type = super::GifEnc; type ParentType = gst_video::VideoEncoder; } diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs index ee65609d..c4abc0e5 100644 --- a/video/gtk4/src/sink/imp.rs +++ b/video/gtk4/src/sink/imp.rs @@ -60,7 +60,7 @@ impl Drop for PaintableSink { #[glib::object_subclass] impl ObjectSubclass for PaintableSink { - const NAME: &'static str = "Gtk4PaintableSink"; + const NAME: &'static str = "GstGtk4PaintableSink"; type Type = super::PaintableSink; type ParentType = gst_video::VideoSink; } diff --git a/video/gtk4/src/sink/paintable/imp.rs b/video/gtk4/src/sink/paintable/imp.rs index ce1b3f55..f768f5ab 100644 --- a/video/gtk4/src/sink/paintable/imp.rs +++ b/video/gtk4/src/sink/paintable/imp.rs @@ -36,7 +36,7 @@ pub struct SinkPaintable { #[glib::object_subclass] impl ObjectSubclass for SinkPaintable { - const NAME: &'static str = "Gtk4PaintableSinkPaintable"; + const NAME: &'static str = "GstGtk4PaintableSinkPaintable"; type Type = super::SinkPaintable; type ParentType = glib::Object; type Interfaces = (gdk::Paintable,); diff --git a/video/hsv/src/hsvdetector/imp.rs b/video/hsv/src/hsvdetector/imp.rs index 5386a22f..19a18033 100644 --- a/video/hsv/src/hsvdetector/imp.rs +++ b/video/hsv/src/hsvdetector/imp.rs @@ -69,7 +69,7 @@ static CAT: Lazy = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for HsvDetector { - const NAME: &'static str = "HsvDetector"; + const NAME: &'static str = "GstHsvDetector"; type Type = super::HsvDetector; type ParentType = gst_video::VideoFilter; } diff --git a/video/hsv/src/hsvfilter/imp.rs b/video/hsv/src/hsvfilter/imp.rs index f198f5a0..4ea13719 100644 --- a/video/hsv/src/hsvfilter/imp.rs +++ b/video/hsv/src/hsvfilter/imp.rs @@ -65,7 +65,7 @@ static CAT: Lazy = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for HsvFilter { - const NAME: &'static str = "HsvFilter"; + const NAME: &'static str = "GstHsvFilter"; type Type = super::HsvFilter; type ParentType = gst_video::VideoFilter; } diff --git a/video/png/src/pngenc/imp.rs b/video/png/src/pngenc/imp.rs index 851677d8..5c655127 100644 --- a/video/png/src/pngenc/imp.rs +++ b/video/png/src/pngenc/imp.rs @@ -167,7 +167,7 @@ pub struct PngEncoder { #[glib::object_subclass] impl ObjectSubclass for PngEncoder { - const NAME: &'static str = "PngEncoder"; + const NAME: &'static str = "GstRsPngEnc"; type Type = super::PngEncoder; type ParentType = gst_video::VideoEncoder; } diff --git a/video/rav1e/src/rav1enc/imp.rs b/video/rav1e/src/rav1enc/imp.rs index cefa894e..34aa7ac0 100644 --- a/video/rav1e/src/rav1enc/imp.rs +++ b/video/rav1e/src/rav1enc/imp.rs @@ -234,7 +234,7 @@ static CAT: Lazy = Lazy::new(|| { #[glib::object_subclass] impl ObjectSubclass for Rav1Enc { - const NAME: &'static str = "Rav1Enc"; + const NAME: &'static str = "GstRav1Enc"; type Type = super::Rav1Enc; type ParentType = gst_video::VideoEncoder; } diff --git a/video/videofx/src/border/imp.rs b/video/videofx/src/border/imp.rs index f3fb220e..7e0b771f 100644 --- a/video/videofx/src/border/imp.rs +++ b/video/videofx/src/border/imp.rs @@ -270,7 +270,7 @@ impl RoundedCorners { #[glib::object_subclass] impl ObjectSubclass for RoundedCorners { - const NAME: &'static str = "RoundedCorners"; + const NAME: &'static str = "GstRoundedCorners"; type Type = super::RoundedCorners; type ParentType = gst_base::BaseTransform; } diff --git a/video/videofx/tests/colordetect.rs b/video/videofx/tests/colordetect.rs index 96cea95d..caab5a0f 100644 --- a/video/videofx/tests/colordetect.rs +++ b/video/videofx/tests/colordetect.rs @@ -14,7 +14,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstvideofx::plugin_register_static().expect("Failed to register videofx plugin"); + gstrsvideofx::plugin_register_static().expect("Failed to register rsvideofx plugin"); }); } diff --git a/video/videofx/tests/videocompare.rs b/video/videofx/tests/videocompare.rs index ee4ec40e..2af33cae 100644 --- a/video/videofx/tests/videocompare.rs +++ b/video/videofx/tests/videocompare.rs @@ -7,7 +7,7 @@ // SPDX-License-Identifier: MPL-2.0 use gst::prelude::*; -use gstvideofx::{HashAlgorithm, VideoCompareMessage}; +use gstrsvideofx::{HashAlgorithm, VideoCompareMessage}; fn init() { use std::sync::Once; @@ -15,7 +15,7 @@ fn init() { INIT.call_once(|| { gst::init().unwrap(); - gstvideofx::plugin_register_static().expect("Failed to register videofx plugin"); + gstrsvideofx::plugin_register_static().expect("Failed to register videofx plugin"); }); } diff --git a/video/webp/src/dec/imp.rs b/video/webp/src/dec/imp.rs index 645f71e7..8e853385 100644 --- a/video/webp/src/dec/imp.rs +++ b/video/webp/src/dec/imp.rs @@ -19,9 +19,9 @@ use std::marker::PhantomData; static CAT: Lazy = Lazy::new(|| { gst::DebugCategory::new( - "webpdec-rs", + "rswebpdec", gst::DebugColorFlags::empty(), - Some("WebP decoder"), + Some("Rust WebP decoder"), ) }); @@ -267,7 +267,7 @@ impl WebPDec { #[glib::object_subclass] impl ObjectSubclass for WebPDec { - const NAME: &'static str = "RsWebPDec"; + const NAME: &'static str = "GstRsWebPDec"; type Type = super::WebPDec; type ParentType = gst::Element; diff --git a/video/webp/src/dec/mod.rs b/video/webp/src/dec/mod.rs index 9bbd1830..e0f4f319 100644 --- a/video/webp/src/dec/mod.rs +++ b/video/webp/src/dec/mod.rs @@ -8,7 +8,7 @@ // Example command-line: // -// gst-launch-1.0 filesrc location=animated.webp ! webpdec-rs ! videoconvert ! autovideosink +// gst-launch-1.0 filesrc location=animated.webp ! rswebpdec ! videoconvert ! autovideosink use gst::glib; use gst::prelude::*; @@ -22,7 +22,7 @@ glib::wrapper! { pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { gst::Element::register( Some(plugin), - "webpdec-rs", + "rswebpdec", gst::Rank::Primary, WebPDec::static_type(), ) diff --git a/video/webp/tests/webpdec.rs b/video/webp/tests/webpdec.rs index 95451faf..de560a08 100644 --- a/video/webp/tests/webpdec.rs +++ b/video/webp/tests/webpdec.rs @@ -23,7 +23,7 @@ fn init() { fn test_decode() { init(); let data = include_bytes!("animated.webp").as_ref(); - let mut h = gst_check::Harness::new("webpdec-rs"); + let mut h = gst_check::Harness::new("rswebpdec"); h.set_src_caps_str("image/webp");