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

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2022-10-18 18:26:43 +0300
committerSebastian Dröge <slomo@coaxion.net>2022-10-18 19:27:41 +0300
commit3eaf29b71f630bc31ff8a9f57ac1c8d1e0b03e24 (patch)
tree418771774e6a15cf0a6c333de660b8bab5dc4634
parent24b7cfc841dfc82da85021dbd2be410de9a44adc (diff)
fallbacksrc: Don't use fallback caps to normal stream
fallback-{audio,video}-caps should be applied only to fallback branches
-rw-r--r--utils/fallbackswitch/src/fallbacksrc/imp.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/fallbackswitch/src/fallbacksrc/imp.rs b/utils/fallbackswitch/src/fallbacksrc/imp.rs
index 739d2771..bbdb498b 100644
--- a/utils/fallbackswitch/src/fallbacksrc/imp.rs
+++ b/utils/fallbackswitch/src/fallbacksrc/imp.rs
@@ -1696,7 +1696,9 @@ impl FallbackSrc {
let capsfilter = gst::ElementFactory::make("capsfilter", Some("video_capsfilter"))
.expect("No capsfilter found");
- capsfilter.set_property("caps", filter_caps);
+ if fallback_source {
+ capsfilter.set_property("caps", filter_caps);
+ }
bin.add_many(&[&videoconvert, &videoscale, &capsfilter])
.unwrap();
@@ -1730,7 +1732,9 @@ impl FallbackSrc {
let capsfilter = gst::ElementFactory::make("capsfilter", Some("audio_capsfilter"))
.expect("No capsfilter found");
- capsfilter.set_property("caps", filter_caps);
+ if fallback_source {
+ capsfilter.set_property("caps", filter_caps);
+ }
bin.add_many(&[&audioconvert, &audioresample, &capsfilter])
.unwrap();