From 5e301fd1a88acf698f1918ddf8ea5981d12ac811 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 27 Jan 2016 12:11:28 +0100 Subject: force all pipelines to the same clock and expose it to the network, #46 --- voctocore/lib/avrawoutput.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'voctocore/lib/avrawoutput.py') diff --git a/voctocore/lib/avrawoutput.py b/voctocore/lib/avrawoutput.py index 62a03d2..60d2b37 100644 --- a/voctocore/lib/avrawoutput.py +++ b/voctocore/lib/avrawoutput.py @@ -3,6 +3,7 @@ from gi.repository import Gst from lib.config import Config from lib.tcpmulticonnection import TCPMultiConnection +from lib.clock import Clock class AVRawOutput(TCPMultiConnection): def __init__(self, channel, port): @@ -38,6 +39,7 @@ class AVRawOutput(TCPMultiConnection): ) self.log.debug('Creating Output-Pipeline:\n%s', pipeline) self.outputPipeline = Gst.parse_launch(pipeline) + self.outputPipeline.use_clock(Clock) self.log.debug('Binding Error & End-of-Stream-Signal on Output-Pipeline') self.outputPipeline.bus.add_signal_watch() -- cgit v1.2.3