Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2023-05-17 17:49:09 +0300
committerSeungha Yang <seungha@centricular.com>2023-05-17 17:49:09 +0300
commit3406e604cda76514fae39ec1be3022925dac1df2 (patch)
tree3fc65b1671cbbdae45b87b4cf82f33ffdadf23b1 /utils/fallbackswitch
parent7ebf2d7a4fa31fa137bb5cc5419462fd692fa47c (diff)
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>
Diffstat (limited to 'utils/fallbackswitch')
-rw-r--r--utils/fallbackswitch/src/fallbacksrc/imp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs
index 4be3ed44c..129bbc444 100644
--- a/utils/fallbackswitch/src/fallbacksrc/imp.rs
+++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs
@@ -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");