From b185819140c62ed02ef92093f286866bdc070c61 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 20 Jan 2022 20:37:27 +0100 Subject: [PATCH] webrtcsink: don't add video elements to audio discovery pipeline --- plugins/src/webrtcsink/imp.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/src/webrtcsink/imp.rs b/plugins/src/webrtcsink/imp.rs index 5e72e49d2..09612e077 100644 --- a/plugins/src/webrtcsink/imp.rs +++ b/plugins/src/webrtcsink/imp.rs @@ -1972,7 +1972,9 @@ impl WebRTCSink { let mut elements = Vec::new(); elements.push(src.clone()); - elements.push(make_converter_for_video_caps(caps)?); + if codec.is_video { + elements.push(make_converter_for_video_caps(caps)?); + } let capsfilter = make_element("capsfilter", None)?; elements.push(capsfilter.clone());