diff options
Diffstat (limited to 'debian/patches/22_msf_offset.patch')
-rw-r--r-- | debian/patches/22_msf_offset.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/22_msf_offset.patch b/debian/patches/22_msf_offset.patch new file mode 100644 index 0000000..b7bcb2c --- /dev/null +++ b/debian/patches/22_msf_offset.patch @@ -0,0 +1,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]) + """, + } + } |