Launched beta 4

This commit is contained in:
Sergio Costas 2014-12-25 19:55:40 +01:00
parent 9b6424423b
commit 68b874d71a
3 changed files with 13 additions and 8 deletions

View file

@ -35,7 +35,7 @@ class configuration(GObject.GObject):
def __init__(self):
GObject.GObject.__init__(self)
self.version = "0.1 Beta 3"
self.version = "0.1 Beta 4"
def fill_config(self):

View file

@ -327,8 +327,8 @@ class devede_project:
min_bps = 300
max_total = 2700
else:
max_bps = -1
min_bps = -1
max_bps = 9000
min_bps = 300
max_total = -1
if (total_resolution != 0):
@ -339,14 +339,16 @@ class devede_project:
length = l[2]
audio_rate = l[3]
video_rate = (remaining_disc_size * surface) / ( length * total_resolution)
if (max_total != -1):
if max_total != -1:
max2 = max_total - audio_rate
if (max2 > max_bps):
max2 = max_bps
if (video_rate > max2):
video_rate = max2
if (video_rate < min_bps):
video_rate = min_bps
else:
max2 = max_bps
if (video_rate > max2):
video_rate = max2
if (video_rate < min_bps):
video_rate = min_bps
f.set_auto_video_audio_rate(video_rate, audio_rate)
self.refresh_disc_usage()