From 280c3dc4599c66051001fa9a1effed2f7c25dfa9 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Tue, 2 Sep 2014 20:24:21 +0200 Subject: coming closer to a real failsafe shmsrc --- voctocore/experiments/shmsrc.py | 6 ++++++ 1 file changed, 6 insertions(+) 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): -- cgit v1.2.3