webrtc/utils: fix typos

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1289>
This commit is contained in:
Mathieu Duponchelle 2023-08-01 00:28:32 +02:00
parent 516c623df5
commit dbeb65da06

View file

@ -494,9 +494,9 @@ impl Codec {
fn get_encoder_for_caps(
caps: &gst::Caps,
decoders: &glib::List<gst::ElementFactory>,
encoders: &glib::List<gst::ElementFactory>,
) -> Option<gst::ElementFactory> {
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()))
})
}