Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/glive.py
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2010-05-19 17:48:50 (GMT)
committer Daniel Drake <dsd@laptop.org>2010-05-19 17:48:50 (GMT)
commit28bfe740b64bd20005b4eee84014536b4fd5ab06 (patch)
tree67a3b86a0da2a939d37042aebcac3c10c0e70595 /glive.py
parenta9432aeadf5c0bb33947990aee4d89a761008021 (diff)
Don't sync video preview with the clock
This should reduce resource usage a little (it'll display frames when is most convenient rather than worrying about the clock) and might reduce weirdness associated with trying to synchronize the video preview with the audio. Suggested and tested by Jon Nettleton
Diffstat (limited to 'glive.py')
-rw-r--r--glive.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/glive.py b/glive.py
index b864cba..13ad361 100644
--- a/glive.py
+++ b/glive.py
@@ -223,11 +223,18 @@ class Glive:
xvsink.set_state(gst.STATE_NULL)
if xv_available:
+ # http://thread.gmane.org/gmane.comp.video.gstreamer.devel/29644
+ xvsink.set_property("sync", False)
+
self.pipeline.add(xvsink)
queue.link(xvsink)
else:
cspace = gst.element_factory_make("ffmpegcolorspace")
xsink = gst.element_factory_make("ximagesink")
+
+ # http://thread.gmane.org/gmane.comp.video.gstreamer.devel/29644
+ xsink.set_property("sync", False)
+
self.pipeline.add(cspace, xsink)
gst.element_link_many(queue, cspace, xsink)