Skip to content

Commit

Permalink
o remove debug message from last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Sep 15, 2012
1 parent bcb77e7 commit abb0471
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions convolver.cc
Expand Up @@ -130,14 +130,8 @@ class SndFileHandler :
// Programs sometimes do this apparently. And sometimes not even to the // Programs sometimes do this apparently. And sometimes not even to the
// very end but 'almost' at the end. So add some FudeOverhang // very end but 'almost' at the end. So add some FudeOverhang
static const int kFudgeOverhang = 512; static const int kFudgeOverhang = 512;
// But of course only if this is really a detected skip. // But of course only if this is really a skip, not a regular approaching
if (output_buffer_->FileSize() < offset // end-of-file.
&& (int) (offset + size + kFudgeOverhang) < file_stat_.st_size) {
LOGF(stderr,
"Skip attempt: file=%ld, offset=%ld, size=%ld; file_size=%ld; diff=%ld\n",
output_buffer_->FileSize(), offset, size, file_stat_.st_size,
file_stat_.st_size - offset);
}
if (output_buffer_->FileSize() < offset if (output_buffer_->FileSize() < offset
&& (int) (offset + size + kFudgeOverhang) >= file_stat_.st_size) { && (int) (offset + size + kFudgeOverhang) >= file_stat_.st_size) {
const int pretended_bytes = std::min((off_t)size, const int pretended_bytes = std::min((off_t)size,
Expand Down

0 comments on commit abb0471

Please sign in to comment.