[pitivi] titleeditor: Never try to work with interpollated properties
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] titleeditor: Never try to work with interpollated properties
- Date: Tue, 9 Feb 2016 21:08:53 +0000 (UTC)
commit 95be4a1fb14e2208ac11765c07e3e9978e98215b
Author: Thibault Saunier <tsaunier gnome org>
Date: Tue Feb 9 15:22:46 2016 +0100
titleeditor: Never try to work with interpollated properties
Currently the `alpha` property can be interpollated and we do not
want to mess with it (as we were currently flush seeking each
time it was changing, leading to an infinite loop) and failures.
Differential Revision: https://phabricator.freedesktop.org/D750
pitivi/titleeditor.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/titleeditor.py b/pitivi/titleeditor.py
index 34b9eea..9d941bc 100644
--- a/pitivi/titleeditor.py
+++ b/pitivi/titleeditor.py
@@ -229,7 +229,13 @@ class TitleEditor(Loggable):
def _propertyChangedCb(self, source, unused_gstelement, pspec):
if self._setting_props:
- self._project.pipeline.flushSeek()
+ self._project.pipeline.commit_timeline()
+ return
+
+ control_binding = self.source.get_control_binding(pspec.name)
+ if control_binding:
+ self.debug("Not handling %s as it is being interpollated",
+ pspec.name)
return
value = self.source.get_child_property(pspec.name)[1]
@@ -263,7 +269,7 @@ class TitleEditor(Loggable):
return
self.background_color_button.set_rgba(color)
- self._project.pipeline.flushSeek()
+ self._project.pipeline.commit_timeline()
def _newProjectLoadedCb(self, app, project, unused_fully_loaded):
if self._selection is not None:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]