[ANNOUNCE] VDR developer version 1.3.49

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;
            }
         }

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux