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/audiomix.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'voctocore/lib/audiomix.py') diff --git a/voctocore/lib/audiomix.py b/voctocore/lib/audiomix.py index 1c72ede..6c1768a 100644 --- a/voctocore/lib/audiomix.py +++ b/voctocore/lib/audiomix.py @@ -3,6 +3,7 @@ from gi.repository import Gst from enum import Enum from lib.config import Config +from lib.clock import Clock class AudioMix(object): def __init__(self): @@ -47,6 +48,7 @@ class AudioMix(object): self.log.debug('Creating Mixing-Pipeline:\n%s', pipeline) self.mixingPipeline = Gst.parse_launch(pipeline) + self.mixingPipeline.use_clock(Clock) self.log.debug('Binding Error & End-of-Stream-Signal on Mixing-Pipeline') self.mixingPipeline.bus.add_signal_watch() -- cgit v1.2.3