Source: yatm
Version: 0.8-2
Severity: serious
Tags: patch

Hi,

The rebuild caused by the recent upload (thanks for fixing that!)
uncovered that yatm 0.8 FTBFS in sid. It seems that the amd64 version
uploaded was using an outdated build environment.

The cause is that starting with soundtouch 1.9.0 the library no longer declares

#define FALSE 0
#define TRUE 1

in one of it's headers.

Using true or 1 instead of TRUE should fix this. The attached patch
uses 1 as to most closely mimic the previous behavior.

Cheers,
Miguel
--- yatm-0.8.orig/yatm.cc
+++ yatm-0.8/yatm.cc
@@ -863,7 +863,7 @@ play_sndfile (int fd, char const *begin,
 {
   sf_count_t maxFrames = 0;
   memset (&sfinfo, 0, sizeof (sfinfo));
-  if ((sndfile = sf_open_fd (dup(fd), SFM_READ, &sfinfo, TRUE))) {
+  if ((sndfile = sf_open_fd (dup(fd), SFM_READ, &sfinfo, 1))) {
     if (begin) {
       double time;
       if (parse_double_time(&time, begin) == -1) {

Reply via email to