diff options
author | MaZderMind <git@mazdermind.de> | 2016-02-04 17:46:31 +0100 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2016-02-04 17:46:31 +0100 |
commit | 3e4b04b2d1bfd96b7018a2058cbb0a847e012cf7 (patch) | |
tree | 53da2041ced4fc463126725d6e66589897eb6576 /voctogui/lib/videodisplay.py | |
parent | 140d4651afcdbf72a4b2637acd0c71925816eb82 (diff) | |
parent | 54775670b049a338d97b57218d36da00d778b432 (diff) |
Merge branch 'nettime'
Diffstat (limited to 'voctogui/lib/videodisplay.py')
-rw-r--r-- | voctogui/lib/videodisplay.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/voctogui/lib/videodisplay.py b/voctogui/lib/videodisplay.py index 8ce1413..9a02658 100644 --- a/voctogui/lib/videodisplay.py +++ b/voctogui/lib/videodisplay.py @@ -2,6 +2,7 @@ import logging from gi.repository import Gst from lib.config import Config +from lib.clock import Clock class VideoDisplay(object): """ Displays a Voctomix-Video-Stream into a GtkWidget """ @@ -92,7 +93,7 @@ class VideoDisplay(object): if play_audio: # ts-offset=1000000000 (1s) - should keep audio & video in sync but delay by 1s pipeline += """ - alsasink sync=False + alsasink """ # Otherwise just trash the Audio @@ -111,6 +112,7 @@ class VideoDisplay(object): self.log.debug('Creating Display-Pipeline:\n%s', pipeline) self.pipeline = Gst.parse_launch(pipeline) + self.pipeline.use_clock(Clock) self.drawing_area.realize() self.xid = self.drawing_area.get_property('window').get_xid() |