summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorschmirl <schmirl>2010-06-04 18:32:34 +0000
committerschmirl <schmirl>2010-06-04 18:32:34 +0000
commit1a1141e4a1e856bfff37591da1769625bd7a21dc (patch)
tree633c1455cb4ba44754bd570c662b5bd8b3ec7949 /server
parent7517b874d8f0b5c823c8e3f9c811306e4906f1da (diff)
downloadvdr-plugin-streamdev-1a1141e4a1e856bfff37591da1769625bd7a21dc.tar.gz
vdr-plugin-streamdev-1a1141e4a1e856bfff37591da1769625bd7a21dc.tar.bz2
Switched to proper tsplay-0.2 patch detection
Modified Files: server/recplayer.c Makefile CONTRIBUTORS HISTORY
Diffstat (limited to 'server')
-rw-r--r--server/recplayer.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/server/recplayer.c b/server/recplayer.c
index 3c0e728..384ac13 100644
--- a/server/recplayer.c
+++ b/server/recplayer.c
@@ -21,6 +21,9 @@
#include "recplayer.h"
+// for TSPLAY patch detection
+#include "vdr/device.h"
+
#define _XOPEN_SOURCE 600
#include <fcntl.h>
@@ -34,7 +37,7 @@ RecPlayer::RecPlayer(cRecording* rec)
// FIXME find out max file path / name lengths
-#if VDRVERSNUM >= 10703 || defined(MAXVIDEOFILESIZETS)
+#if VDRVERSNUM >= 10703 || defined(TSPLAY_PATCH_VERSION)
indexFile = new cIndexFile(recording->FileName(), false, rec->IsPesRecording());
#else
indexFile = new cIndexFile(recording->FileName(), false);
@@ -58,7 +61,7 @@ void RecPlayer::scan()
for(i = 1; i < 1000; i++)
{
-#if APIVERSNUM < 10703 || !defined(MAXVIDEOFILESIZETS)
+#if APIVERSNUM < 10703 || !defined(TSPLAY_PATCH_VERSION)
snprintf(fileName, 2047, "%s/%03i.vdr", recording->FileName(), i);
//log->log("RecPlayer", Log::DEBUG, "FILENAME: %s", fileName);
file = fopen(fileName, "r");
@@ -99,7 +102,7 @@ int RecPlayer::openFile(int index)
char fileName[2048];
-#if APIVERSNUM >= 10703 || defined(MAXVIDEOFILESIZETS)
+#if APIVERSNUM >= 10703 || defined(TSPLAY_PATCH_VERSION)
snprintf(fileName, 2047, "%s/%05i.ts", recording->FileName(), index);
isyslog("openFile called for index %i string:%s", index, fileName);
@@ -222,7 +225,7 @@ uint64_t RecPlayer::positionFromFrameNumber(uint32_t frameNumber)
{
if (!indexFile) return 0;
-#if VDRVERSNUM >= 10703 || defined(MAXVIDEOFILESIZETS)
+#if VDRVERSNUM >= 10703 || defined(TSPLAY_PATCH_VERSION)
uint16_t retFileNumber;
off_t retFileOffset;
#else