[pitivi] project: Remove double check of correct values
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] project: Remove double check of correct values
- Date: Thu, 2 Jun 2016 21:50:50 +0000 (UTC)
commit 46dbd60bc56e7fc8a219ba2b5a88abf2420e757c
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue May 31 17:36:00 2016 +0200
project: Remove double check of correct values
The setVideoRestriction and __setAudioRestriction methods already check
that 'value' is ok.
Differential Revision: https://phabricator.freedesktop.org/D1040
pitivi/project.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 118404c..a1eb373 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -818,7 +818,7 @@ class Project(Loggable, GES.Project):
@videowidth.setter
def videowidth(self, value):
- if value and self.setVideoRestriction("width", int(value)):
+ if self.setVideoRestriction("width", int(value)):
self._emitChange("rendering-settings-changed", "width", value)
@property
@@ -827,7 +827,7 @@ class Project(Loggable, GES.Project):
@videoheight.setter
def videoheight(self, value):
- if value and self.setVideoRestriction("height", int(value)):
+ if self.setVideoRestriction("height", int(value)):
self._emitChange("rendering-settings-changed", "height", value)
@property
@@ -855,7 +855,7 @@ class Project(Loggable, GES.Project):
@audiochannels.setter
def audiochannels(self, value):
- if value and self.__setAudioRestriction("channels", int(value)):
+ if self.__setAudioRestriction("channels", int(value)):
self._emitChange("rendering-settings-changed", "channels", value)
@property
@@ -867,7 +867,7 @@ class Project(Loggable, GES.Project):
@audiorate.setter
def audiorate(self, value):
- if value and self.__setAudioRestriction("rate", int(value)):
+ if self.__setAudioRestriction("rate", int(value)):
self._emitChange("rendering-settings-changed", "rate", value)
@property
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]