mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-10 19:25:26 +00:00
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:
parent
f62c11f851
commit
86e983ef11
1 changed files with 13 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue