jdahlin - in flumotion/trunk: . flumotion/wizard
flumotion-commit at lists.fluendo.com
flumotion-commit at lists.fluendo.com
Tue Dec 4 12:28:27 CET 2007
Author: jdahlin
Date: Tue Dec 4 12:28:12 2007
New Revision: 5955
Modified:
flumotion/trunk/ChangeLog
flumotion/trunk/flumotion/wizard/save.py
Log:
2007-12-04 Johan Dahlin <johan at gnome.org>
* flumotion/wizard/save.py (WizardSaver._set_fraction_property): Catch
ValueError, fixes the webcam step.
Modified: flumotion/trunk/ChangeLog
==============================================================================
--- flumotion/trunk/ChangeLog (original)
+++ flumotion/trunk/ChangeLog Tue Dec 4 12:28:12 2007
@@ -1,5 +1,8 @@
2007-12-04 Johan Dahlin <johan at gnome.org>
+ * flumotion/wizard/save.py (WizardSaver._set_fraction_property): Catch
+ ValueError, fixes the webcam step.
+
* data/glade/admin-wizard.glade:
* data/glade/authenticate.glade:
* data/glade/greeter-authenticate.glade:
Modified: flumotion/trunk/flumotion/wizard/save.py
==============================================================================
--- flumotion/trunk/flumotion/wizard/save.py (original)
+++ flumotion/trunk/flumotion/wizard/save.py Tue Dec 4 12:28:12 2007
@@ -173,9 +173,12 @@
if not property_name in properties:
return
- framerate = _fraction_from_float(int(properties[property_name]),
- denominator)
- properties[property_name] = framerate
+ value = properties[property_name]
+ try:
+ value = _fraction_from_float(int(value), denominator)
+ except ValueError:
+ pass
+ properties[property_name] = value
def getVideoEncoder(self):
options = self.wizard.get_step_options(_('Encoding'))
More information about the flumotion-commit
mailing list