summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--voctocore/experiments/shmsrc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/voctocore/experiments/shmsrc.py b/voctocore/experiments/shmsrc.py
index d44c6b3..47d5c97 100644
--- a/voctocore/experiments/shmsrc.py
+++ b/voctocore/experiments/shmsrc.py
@@ -90,6 +90,12 @@ class ShmSrc(Gst.Bin):
def restart(self):
self.shmsrc.set_state(Gst.State.NULL)
+
+ # this somehow solves parts of the multi-output-timestamping-issue
+ # starting the 2nd src n seconds after the program started freezes it for n seconds
+ self.shmsrc.set_start_time(0)
+ self.shmsrc.set_base_time(self.get_clock().get_time())
+
self.shmsrc.set_state(Gst.State.PLAYING)
def switch_to_goodstate(self):