summaryrefslogtreecommitdiff
path: root/voctocore/lib/avsource.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2016-01-27 12:11:28 +0100
committerMaZderMind <git@mazdermind.de>2016-02-02 16:05:56 +0100
commit5e301fd1a88acf698f1918ddf8ea5981d12ac811 (patch)
tree614bdc278ef0be0bdf893003a5a91be3f77776fb /voctocore/lib/avsource.py
parent63767175114636a838e0fc0d31ce0251929e45f8 (diff)
force all pipelines to the same clock and expose it to the network, #46
Diffstat (limited to 'voctocore/lib/avsource.py')
-rw-r--r--voctocore/lib/avsource.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/voctocore/lib/avsource.py b/voctocore/lib/avsource.py
index c9f4dea..f814c45 100644
--- a/voctocore/lib/avsource.py
+++ b/voctocore/lib/avsource.py
@@ -3,6 +3,7 @@ from gi.repository import Gst
from lib.config import Config
from lib.tcpsingleconnection import TCPSingleConnection
+from lib.clock import Clock
class AVSource(TCPSingleConnection):
def __init__(self, name, port, outputs=None, has_audio=True, has_video=True):
@@ -64,6 +65,7 @@ class AVSource(TCPSingleConnection):
self.log.debug('Launching Source-Pipeline:\n%s', pipeline)
self.receiverPipeline = Gst.parse_launch(pipeline)
+ self.receiverPipeline.use_clock(Clock)
self.log.debug('Binding End-of-Stream-Signal on Source-Pipeline')
self.receiverPipeline.bus.add_signal_watch()