← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 638: Fixed a locale bug with exporting video as x.264

 

------------------------------------------------------------
revno: 638
fixes bug: https://launchpad.net/bugs/927126
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Sun 2012-02-05 14:49:07 -0600
message:
  Fixed a locale bug with exporting video as x.264
modified:
  openshot/classes/video.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/classes/video.py'
--- openshot/classes/video.py	2012-01-02 07:20:17 +0000
+++ openshot/classes/video.py	2012-02-05 20:49:07 +0000
@@ -16,7 +16,7 @@
 #	You should have received a copy of the GNU General Public License
 #	along with OpenShot Video Editor.  If not, see <http://www.gnu.org/licenses/>.
 
-import os, sys, time 
+import os, sys, locale, time
 import threading
 import gobject
 from classes import profiles
@@ -155,7 +155,7 @@
 					self.c.set("qmax", "51")
 					self.c.set("subq", "7")
 					self.c.set("qmin", "10")
-					self.c.set("qcomp", "0.6")
+					self.c.set("qcomp", locale.str(float("0.6")))
 					self.c.set("qdiff", "4")
 					self.c.set("trellis", "1")
 				if format == "dvd":