fallbacksrc: Don't apply fallback-audio-caps to the main audio stream

Intended behavior is configuring audio convert/resample elements
only for the fallback stream and also fallback-audio-caps is set.
Video and image stream are doing it as intended already.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1213>
This commit is contained in:
Seungha Yang 2023-05-17 23:49:09 +09:00
parent 7ebf2d7a4f
commit 3406e604cd

View file

@ -1672,7 +1672,7 @@ impl FallbackSrc {
filter_caps: &gst::Caps,
fallback_source: bool,
) -> gst::Element {
if !fallback_source && filter_caps.is_any() {
if !fallback_source || filter_caps.is_any() {
return gst::ElementFactory::make("identity")
.build()
.expect("No identity found");