From 482b7e1469c24c422d9d9e2a86b9b481ee485eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 10 Jul 2023 19:54:30 +0300 Subject: [PATCH] webrtcsink: Set VP8/VP9 payloader based on payloader element factory name Instead of checking the encoder's name. There are more VP8/VP9 encoders than the ones from the vpx plugin. Part-of: --- net/webrtc/src/webrtcsink/imp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/webrtc/src/webrtcsink/imp.rs b/net/webrtc/src/webrtcsink/imp.rs index 7c5f1d84c..b70d2fb11 100644 --- a/net/webrtc/src/webrtcsink/imp.rs +++ b/net/webrtc/src/webrtcsink/imp.rs @@ -549,8 +549,8 @@ fn setup_encoding( gst::Caps::builder("audio/x-raw").build() }; - match codec.encoder.name().as_str() { - "vp8enc" | "vp9enc" => { + match codec.payloader.name().as_str() { + "rtpvp8pay" | "rtpvp9pay" => { pay.set_property_from_str("picture-id-mode", "15-bit"); } _ => (),