diff options
author | Daniel Drake <dsd@laptop.org> | 2010-05-19 17:48:50 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2010-05-19 17:48:50 (GMT) |
commit | 28bfe740b64bd20005b4eee84014536b4fd5ab06 (patch) | |
tree | 67a3b86a0da2a939d37042aebcac3c10c0e70595 /glive.py | |
parent | a9432aeadf5c0bb33947990aee4d89a761008021 (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.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |