Package: jack / 3.1.1+cvs20050801-31

22_msf_offset.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Don't assume that the first song starts right after the MSF offset.  This
fixes the FreeDB (CDDB) ID calculation which was broken with some CDs.
Debian #319901.

This patch indirectly also causes jack to use the tracksize information
from cdparanoia which is more accurate and therefore won't lead to failures
on tracks right before a data track.  Debian #319894.


diff -urN jack-3.1.1.orig/jack_helpers.py jack-3.1.1/jack_helpers.py
--- jack-3.1.1.orig/jack_helpers.py	2005-07-26 20:10:09.231433216 +0100
+++ jack-3.1.1/jack_helpers.py	2005-07-26 20:10:28.655480312 +0100
@@ -488,7 +488,7 @@
 device.close()
 toc.append(min * 60 * 75 + sec * 75 + frame)
 for i in range(first, last + 1):
-    erg.append([i, toc[i - first + 1] - toc[i - first], toc[i - first] - toc[0], 0, 0, 2, 1, cf['_bitrate'], cf['_name'] % i])
+    erg.append([i, toc[i - first + 1] - toc[i - first], toc[i - first] - MSF_OFFSET, 0, 0, 2, 1, cf['_bitrate'], cf['_name'] % i])
 """,
     }
 }