mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-06 15:38:58 +00:00
webrtcsink: don't add video elements to audio discovery pipeline
This commit is contained in:
parent
f0d64a9fe8
commit
b185819140
1 changed files with 3 additions and 1 deletions
|
@ -1972,7 +1972,9 @@ impl WebRTCSink {
|
||||||
let mut elements = Vec::new();
|
let mut elements = Vec::new();
|
||||||
elements.push(src.clone());
|
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)?;
|
let capsfilter = make_element("capsfilter", None)?;
|
||||||
elements.push(capsfilter.clone());
|
elements.push(capsfilter.clone());
|
||||||
|
|
Loading…
Reference in a new issue