[vdr] [ANNOUNCE] VDR developer version 1.3.49
Artur Skawina
art_k at o2.pl
Sat Apr 29 12:03:28 CEST 2006
Klaus Schmidinger wrote:
> VDR developer version 1.3.49 is now available at
> If there are no more serious bugs, this will become the final
> version 1.4.0 this sunday :-)
looking through local changes, i think this is the only one obviously-correct enough
-- i got +/- wrong when calculating the size; should be mostly harmless anyway (was
just calling fadvise with too large area).
-------------- next part --------------
diff -urNp vdr-1.3.49.org/tools.c vdr-1.3.49.min/tools.c
--- vdr-1.3.49.org/tools.c 2006-04-21 15:12:47.000000000 +0000
+++ vdr-1.3.49.min/tools.c 2006-04-29 09:10:26.000000000 +0000
@@ -1179,7 +1179,7 @@ ssize_t cUnbufferedFile::Read(void *Data
}
else if (cachedend > ahead && cachedend - curpos > READCHUNK * 2) {
// current position has moved back enough, shrink head window.
- FadviseDrop(curpos + READCHUNK, cachedend - curpos + READCHUNK);
+ FadviseDrop(curpos + READCHUNK, cachedend - (curpos + READCHUNK));
cachedend = curpos + READCHUNK;
}
}
More information about the vdr
mailing list