1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Fix the code which checks whether disk space has been freed outside of
jack. Debian #200233.
I'm not positive whether this fix is 100% correct but it seems to work,
certainly better than the current broken code which never updates
space_adjust at all. -- tbm
diff -urN jack-3.1.1~/jack_main_loop.py jack-3.1.1/jack_main_loop.py
--- jack-3.1.1~/jack_main_loop.py 2005-07-30 00:17:58.603803952 +0100
+++ jack-3.1.1/jack_main_loop.py 2005-07-30 00:18:36.513040872 +0100
@@ -71,9 +71,8 @@
global_start = time.time()
while mp3s_todo or enc_queue or dae_queue or enc_running or dae_running:
-
+ orig_space = space
# feed in the WAVs which have been there from the start
-
if mp3s_todo and jack_functions.tracksize(mp3s_todo[0])[ENC] < space:
waiting_space = 0
enc_queue.append(mp3s_todo[0])
@@ -358,6 +357,8 @@
if global_error:
jack_display.smile = " :-["
+ space_adjust += orig_space-space
+
if last_update + cf['_update_interval'] <= time.time():
last_update = time.time()
|