fallbacksrc: Try setting imagefreeze to live mode

Otherwise we would start outputting at running time 0, which is going to
be wrong if the pipeline was already running for a while.

Requires https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/653
This commit is contained in:
Sebastian Dröge 2020-06-29 12:03:57 +03:00
parent f62c11f851
commit 86e983ef11

View file

@ -635,6 +635,19 @@ impl FallbackSrc {
gst::StateChangeError
})?;
if imagefreeze.set_property("is-live", &true).is_err() {
gst_error!(
CAT,
obj: element,
"imagefreeze does not support live mode, this will probably misbehave"
);
gst_element_warning!(
element,
gst::LibraryError::Settings,
["imagefreeze does not support live mode, this will probably misbehave"]
);
}
let element_weak = element.downgrade();
let input_weak = input.downgrade();
let videoconvert_weak = videoconvert.downgrade();