[pitivi] project.py: house keeping
- From: Edward Hervey <edwardrv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] project.py: house keeping
- Date: Fri, 6 Aug 2010 08:26:06 +0000 (UTC)
commit c01bb6e7cd99bc9c17478321fb053f09e708fa89
Author: Luis de Bethencourt <luis debethencourt com>
Date: Thu Aug 5 18:29:29 2010 +0200
project.py: house keeping
pitivi/project.py | 19 +++----------------
1 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index 61722f8..0872cbc 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -95,18 +95,7 @@ class Project(Signallable, Loggable):
self.view_action.addProducers(self.factory)
self.seeker = Seeker(80)
- self.getCapsFromSettings()
-
- def getCapsFromSettings(self):
settings = self.getSettings()
- #formatstr = "video/x-raw-rgb,width=(int)%d,height=(int)%d;"\
- # "video/x-raw-yuv,width=(int)%d,height=(int)%d"
- #capstr = formatstr % (
- # settings.videowidth,
- # settings.videoheight,
- # settings.videowidth,
- # settings.videoheight)
- #self._videocaps = gst.Caps(capstr)
self._videocaps = settings.getVideoCaps()
def release(self):
@@ -135,10 +124,6 @@ class Project(Signallable, Loggable):
self._projectSettingsChanged()
self.emit('settings-changed', oldsettings, settings)
- def unsetSettings(self, unused_settings):
- """ Remove the currently configured settings."""
- self.setSettings(None)
-
def getAutoSettings(self):
"""
Computes and returns smart settings for the project.
@@ -204,7 +189,9 @@ class Project(Signallable, Loggable):
return self._dirty
def _projectSettingsChanged(self):
- self.getCapsFromSettings()
+ settings = self.getSettings()
+ self._videocaps = settings.getVideoCaps()
+
for fact in self.sources.getSources():
fact.setFilterCaps(self._videocaps)
if self.pipeline.getState() != gst.STATE_NULL:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]