diff options
Diffstat (limited to 'voctocore')
-rw-r--r-- | voctocore/experiments/shmsrc.py | 2 | ||||
-rw-r--r-- | voctocore/lib/shmsrc.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/voctocore/experiments/shmsrc.py b/voctocore/experiments/shmsrc.py index 47d5c97..742767b 100644 --- a/voctocore/experiments/shmsrc.py +++ b/voctocore/experiments/shmsrc.py @@ -94,7 +94,7 @@ class ShmSrc(Gst.Bin): # 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_base_time(self.get_parent().get_base_time()) self.shmsrc.set_state(Gst.State.PLAYING) diff --git a/voctocore/lib/shmsrc.py b/voctocore/lib/shmsrc.py index 3b7a6a4..0224386 100644 --- a/voctocore/lib/shmsrc.py +++ b/voctocore/lib/shmsrc.py @@ -98,6 +98,7 @@ class FailsafeShmSrc(Gst.Bin): def restart(self): self.log.warning('restarting ShmSrc') self.shmsrc.set_state(Gst.State.NULL) + self.shmsrc.set_base_time(self.get_parent().get_base_time()) self.shmsrc.set_state(Gst.State.PLAYING) def switch_to_goodstate(self): |