freebsd-ports/multimedia/vdr-plugin-xvdr/files/patch-src-recordings-recplayer.c
Juergen Lock 7c720b5681 VDR plugin to handle XBMC clients.
The vdr-plugin-xvdr is able to handle serveral XBMC clients connecting
via the XVDR addon.

WWW: https://github.com/pipelka/vdr-plugin-xvdr
2011-12-18 17:23:38 +00:00

24 lines
542 B
C

--- a/src/recordings/recplayer.c
+++ b/src/recordings/recplayer.c
@@ -36,6 +36,10 @@
#include "config/config.h"
+#ifndef O_NOATIME
+#define O_NOATIME 0
+#endif
+
cRecPlayer::cRecPlayer(cRecording* rec)
{
m_file = -1;
@@ -220,8 +220,10 @@ int cRecPlayer::getBlock(unsigned char*
return 0;
}
+#ifndef __FreeBSD__
// Tell linux not to bother keeping the data in the FS cache
posix_fadvise(m_file, filePosition, bytes_read, POSIX_FADV_DONTNEED);
+#endif
// divide and conquer
if(bytes_read < amount) {