[pitivi] Generate the available combinations of muxers and encoders only once in ExportSettings
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Generate the available combinations of muxers and encoders only once in ExportSettings
- Date: Sun, 22 May 2011 21:36:17 +0000 (UTC)
commit 01ee1102adeb1cd9c53a355b54cf9ff988800b5c
Author: Alex BÄ?luÈ? <alexandru balut gmail com>
Date: Mon May 2 09:36:29 2011 +0200
Generate the available combinations of muxers and encoders only once in ExportSettings
pitivi/settings.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/settings.py b/pitivi/settings.py
index a236766..cb39d29 100644
--- a/pitivi/settings.py
+++ b/pitivi/settings.py
@@ -461,6 +461,8 @@ class ExportSettings(Signallable, Loggable):
# TODO: initialize this cache from the project file?
factory_settings_cache = {}
+ muxers, aencoders, vencoders = available_combinations()
+
def __init__(self, **unused_kw):
Loggable.__init__(self)
self.videowidth = 720
@@ -476,7 +478,6 @@ class ExportSettings(Signallable, Loggable):
self.containersettings = self.factory_settings_cache.get(self.muxer, {})
self.acodecsettings = self.factory_settings_cache.get(self.aencoder, {})
self.vcodecsettings = self.factory_settings_cache.get(self.vencoder, {})
- self.muxers, self.aencoders, self.vencoders = available_combinations()
def copy(self):
ret = ExportSettings()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]