diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2022-08-10 13:45:52 +0300 |
---|---|---|
committer | Vivia Nikolaidou <vivia@ahiru.eu> | 2022-08-10 14:18:18 +0300 |
commit | 07cbc2f0252d3288ff4e5c10705b3597a12af5e1 (patch) | |
tree | 3a710713926562cbd9064c481964aacc82d46dcb /audio/csound | |
parent | bdaa39e267be5028cb7a00b156466992f5a3de9e (diff) |
audio, video: Use AudioCapsBuilder::new_interleaved where applicable
Further code simplification
Diffstat (limited to 'audio/csound')
-rw-r--r-- | audio/csound/src/filter/imp.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs index 4972fea3..acf79564 100644 --- a/audio/csound/src/filter/imp.rs +++ b/audio/csound/src/filter/imp.rs @@ -453,9 +453,8 @@ impl ElementImpl for CsoundFilter { fn pad_templates() -> &'static [gst::PadTemplate] { static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = Lazy::new(|| { - let caps = gst_audio::AudioCapsBuilder::new() + let caps = gst_audio::AudioCapsBuilder::new_interleaved() .format(gst_audio::AUDIO_FORMAT_F64) - .layout(gst_audio::AudioLayout::Interleaved) .build(); let src_pad_template = gst::PadTemplate::new( "src", |