[pitivi] If the sink has a double-buffer property set that to False.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pitivi] If the sink has a double-buffer property set that to False.
- Date: Tue, 8 Sep 2009 07:34:52 +0000 (UTC)
commit b67e6d3ce086f2bb93d05a9ae9f9b407fb0a20ce
Author: Alessandro Decina <alessandro d gmail com>
Date: Mon Sep 7 18:14:03 2009 +0200
If the sink has a double-buffer property set that to False.
pitivi/plumber.py | 11 +++++++++--
pitivi/ui/viewer.py | 1 -
2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/plumber.py b/pitivi/plumber.py
index aa37a51..6589a66 100644
--- a/pitivi/plumber.py
+++ b/pitivi/plumber.py
@@ -80,8 +80,15 @@ class DefaultVideoSink(SinkFactory):
if self._realsink:
props = list(self._realsink.props)
- if "force-aspect-ratio"in [prop.name for prop in props]:
- self._realsink.set_property("force-aspect-ratio", True)
+ try:
+ self._realsink.props.force_aspect_ratio = True
+ except AttributeError:
+ pass
+
+ try:
+ self._realsink.props.double_buffer = False
+ except AttributeError:
+ pass
self._realsink.props.sync = self.sync
self._realsink.props.qos = self.sync
diff --git a/pitivi/ui/viewer.py b/pitivi/ui/viewer.py
index 3043eeb..b1c3783 100644
--- a/pitivi/ui/viewer.py
+++ b/pitivi/ui/viewer.py
@@ -454,7 +454,6 @@ class ViewerWidget(gtk.DrawingArea, Loggable):
Loggable.__init__(self)
self.action = action # FIXME : Check if it's a view action
self.unset_flags(gtk.SENSITIVE)
- self.unset_flags(gtk.DOUBLE_BUFFERED)
for state in range(gtk.STATE_INSENSITIVE + 1):
self.modify_bg(state, self.style.black)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]