aboutsummaryrefslogtreecommitdiff
path: root/voctocore/experiments
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2014-09-02 20:24:21 +0200
committerMaZderMind <peter@mazdermind.de>2014-09-02 20:24:21 +0200
commit280c3dc4599c66051001fa9a1effed2f7c25dfa9 (patch)
tree78cfe63588b78bca5140fdb0cdfe977733970cef /voctocore/experiments
parent51268aaa2bae7ccd771072211a10f2d2d045d8a8 (diff)
coming closer to a real failsafe shmsrc
Diffstat (limited to 'voctocore/experiments')
-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):