diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-10-23 18:42:58 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-10-23 20:46:08 +0300 |
commit | f045099fc135d54a74b7a918e8ffcce5352ad3a7 (patch) | |
tree | 3ec9ec3beb0bdafb8b16fbf106c89354c5a0c3ea /audio | |
parent | 211cd095d69726a3a2208feddd921d05b60c6540 (diff) |
Fix GObject type names, GStreamer debug category names and element factory names
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/198
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audiofx/src/audioecho/imp.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/src/audioloudnorm/imp.rs | 6 | ||||
-rw-r--r-- | audio/audiofx/src/audioloudnorm/mod.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/src/audiornnoise/imp.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/src/ebur128level/imp.rs | 4 | ||||
-rw-r--r-- | audio/audiofx/src/hrtfrender/imp.rs | 2 | ||||
-rw-r--r-- | audio/audiofx/tests/audioloudnorm.rs | 4 | ||||
-rw-r--r-- | audio/claxon/src/claxondec/imp.rs | 2 | ||||
-rw-r--r-- | audio/csound/src/filter/imp.rs | 2 | ||||
-rw-r--r-- | audio/lewton/src/lewtondec/imp.rs | 2 |
10 files changed, 14 insertions, 14 deletions
diff --git a/audio/audiofx/src/audioecho/imp.rs b/audio/audiofx/src/audioecho/imp.rs index 05e070093..cdf553c27 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 b55e70134..b439db207 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<gst::DebugCategory> = 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 1e18750d0..819744150 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 07b5b348d..b6641e35b 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 1271bfb40..1afb5f2a9 100644 --- a/audio/audiofx/src/ebur128level/imp.rs +++ b/audio/audiofx/src/ebur128level/imp.rs @@ -32,7 +32,7 @@ static CAT: Lazy<gst::DebugCategory> = 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 c78878d38..386965883 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 2e6973ed7..7e9d878e7 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 5fef53e34..e48f0d99e 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 f3bee5785..060278828 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 f58d85539..eb6e63f45 100644 --- a/audio/lewton/src/lewtondec/imp.rs +++ b/audio/lewton/src/lewtondec/imp.rs @@ -47,7 +47,7 @@ static CAT: Lazy<gst::DebugCategory> = 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; } |