From dbeb65da06a182ab79811425c5dcbb11bc819bf9 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 1 Aug 2023 00:28:32 +0200 Subject: [PATCH] webrtc/utils: fix typos Part-of: --- net/webrtc/src/utils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/webrtc/src/utils.rs b/net/webrtc/src/utils.rs index a286e00b..10bf7298 100644 --- a/net/webrtc/src/utils.rs +++ b/net/webrtc/src/utils.rs @@ -494,9 +494,9 @@ impl Codec { fn get_encoder_for_caps( caps: &gst::Caps, - decoders: &glib::List, + encoders: &glib::List, ) -> Option { - decoders + encoders .iter() .find(|factory| { factory.static_pad_templates().iter().any(|template| { @@ -570,7 +570,7 @@ impl Codec { info.encoder .create() .build() - .with_context(|| format!("Creating payloader {}", info.encoder.name())) + .with_context(|| format!("Creating encoder {}", info.encoder.name())) }) }