summaryrefslogtreecommitdiff
path: root/voctogui/lib/clock.py
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-09-26 20:42:07 +0200
committerMaZderMind <git@mazdermind.de>2016-09-26 20:42:07 +0200
commit6e846c7081e242213cd70ceacfcff319e221942c (patch)
tree9d037e9272e65aea06c74775b2af1eae2f50a46e /voctogui/lib/clock.py
parentfbcbc3743e9179738244a96be54aa588e44314cb (diff)
parent1972da7f6aa60d3cb3b68808d0381e37898665f3 (diff)
Merge branch 'pep8'
Diffstat (limited to 'voctogui/lib/clock.py')
-rw-r--r--voctogui/lib/clock.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/voctogui/lib/clock.py b/voctogui/lib/clock.py
index 9075bdc..1a977ce 100644
--- a/voctogui/lib/clock.py
+++ b/voctogui/lib/clock.py
@@ -8,13 +8,14 @@ port = 9998
log = logging.getLogger('Clock')
Clock = None
+
def obtainClock(host):
- global log, Clock, SystemClock
+ global log, Clock, SystemClock
- log.debug('obtaining NetClientClock from host %s', host)
- Clock = GstNet.NetClientClock.new('voctocore', host, port, 0)
- log.debug('obtained NetClientClock from host %s: %s', host, Clock)
+ log.debug('obtaining NetClientClock from host %s', host)
+ Clock = GstNet.NetClientClock.new('voctocore', host, port, 0)
+ log.debug('obtained NetClientClock from host %s: %s', host, Clock)
- log.debug('waiting for NetClientClock to sync to host')
- Clock.wait_for_sync(Gst.CLOCK_TIME_NONE)
- log.info('successfully synced NetClientClock to host')
+ log.debug('waiting for NetClientClock to sync to host')
+ Clock.wait_for_sync(Gst.CLOCK_TIME_NONE)
+ log.info('successfully synced NetClientClock to host')