fallbacksrc: Don't use fallback caps to normal stream

fallback-{audio,video}-caps should be applied only to fallback
branches
This commit is contained in:
Seungha Yang 2022-10-19 00:26:43 +09:00 committed by Sebastian Dröge
parent 24b7cfc841
commit 3eaf29b71f

View file

@ -1696,7 +1696,9 @@ impl FallbackSrc {
let capsfilter = gst::ElementFactory::make("capsfilter", Some("video_capsfilter"))
.expect("No capsfilter found");
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");
if fallback_source {
capsfilter.set_property("caps", filter_caps);
}
bin.add_many(&[&audioconvert, &audioresample, &capsfilter])
.unwrap();