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

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-06-29 12:03:57 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-06-29 12:03:57 +0300
commit86e983ef114443599a97ccdfbac5f17fce3f4544 (patch)
tree58f6bc88ac6cb0e92ec129871b439632d0d92176
parentf62c11f851d357b131d5246153724d616bfc3451 (diff)
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
-rw-r--r--utils/fallbackswitch/src/fallbacksrc.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/fallbackswitch/src/fallbacksrc.rs b/utils/fallbackswitch/src/fallbacksrc.rs
index 5ae3c2979..7425076da 100644
--- a/utils/fallbackswitch/src/fallbacksrc.rs
+++ b/utils/fallbackswitch/src/fallbacksrc.rs
@@ -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();