Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-10-23 18:42:58 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-10-23 20:46:08 +0300
commitf045099fc135d54a74b7a918e8ffcce5352ad3a7 (patch)
tree3ec9ec3beb0bdafb8b16fbf106c89354c5a0c3ea /audio/audiofx
parent211cd095d69726a3a2208feddd921d05b60c6540 (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/audiofx')
-rw-r--r--audio/audiofx/src/audioecho/imp.rs2
-rw-r--r--audio/audiofx/src/audioloudnorm/imp.rs6
-rw-r--r--audio/audiofx/src/audioloudnorm/mod.rs2
-rw-r--r--audio/audiofx/src/audiornnoise/imp.rs2
-rw-r--r--audio/audiofx/src/ebur128level/imp.rs4
-rw-r--r--audio/audiofx/src/hrtfrender/imp.rs2
-rw-r--r--audio/audiofx/tests/audioloudnorm.rs4
7 files changed, 11 insertions, 11 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<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 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<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 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,