diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-10-22 19:06:29 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-10-22 19:50:24 +0300 |
commit | f058a5e2296d69456dae9a2960af79be7becfaa3 (patch) | |
tree | 3b46cc2a541b557e6b493f7b9aa36c13ff529139 /audio | |
parent | f3546819edd26042f9d853a7f1ff7d24771f61a6 (diff) |
Various minor cleanups
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audiofx/tests/audioloudnorm.rs | 2 | ||||
-rw-r--r-- | audio/csound/examples/effect_example.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/audio/audiofx/tests/audioloudnorm.rs b/audio/audiofx/tests/audioloudnorm.rs index 3540c9f90..2e6973ed7 100644 --- a/audio/audiofx/tests/audioloudnorm.rs +++ b/audio/audiofx/tests/audioloudnorm.rs @@ -66,7 +66,7 @@ fn run_test( .downcast::<gst_app::AppSink>() .unwrap(); - sink.set_property("sync", false); + sink.set_sync(false); let caps = gst_audio::AudioInfo::builder(gst_audio::AUDIO_FORMAT_F64, 192_000, channels) .build() .unwrap() diff --git a/audio/csound/examples/effect_example.rs b/audio/csound/examples/effect_example.rs index a681f2c0a..f1e8355fa 100644 --- a/audio/csound/examples/effect_example.rs +++ b/audio/csound/examples/effect_example.rs @@ -73,7 +73,7 @@ const CSD: &str = " </CsoundSynthesizer>"; fn create_pipeline() -> Result<gst::Pipeline, Box<dyn Error>> { - let pipeline = gst::Pipeline::new(None); + let pipeline = gst::Pipeline::default(); let audio_src = gst::parse_bin_from_description(AUDIO_SRC, true)?.upcast(); |