mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 06:50:59 +00:00
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:
parent
24b7cfc841
commit
3eaf29b71f
1 changed files with 6 additions and 2 deletions
|
@ -1696,7 +1696,9 @@ impl FallbackSrc {
|
||||||
let capsfilter = gst::ElementFactory::make("capsfilter", Some("video_capsfilter"))
|
let capsfilter = gst::ElementFactory::make("capsfilter", Some("video_capsfilter"))
|
||||||
.expect("No capsfilter found");
|
.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])
|
bin.add_many(&[&videoconvert, &videoscale, &capsfilter])
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
@ -1730,7 +1732,9 @@ impl FallbackSrc {
|
||||||
let capsfilter = gst::ElementFactory::make("capsfilter", Some("audio_capsfilter"))
|
let capsfilter = gst::ElementFactory::make("capsfilter", Some("audio_capsfilter"))
|
||||||
.expect("No capsfilter found");
|
.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])
|
bin.add_many(&[&audioconvert, &audioresample, &capsfilter])
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in a new issue