summaryrefslogtreecommitdiff
path: root/voctocore/lib/shmsrc.py
diff options
context:
space:
mode:
Diffstat (limited to 'voctocore/lib/shmsrc.py')
-rw-r--r--voctocore/lib/shmsrc.py1
1 files changed, 1 insertions, 0 deletions
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):