From dd9e8516cc1d9c816b85b97ce5af60c7cc6450c3 Mon Sep 17 00:00:00 2001 From: Daniel Meyerholt Date: Sat, 21 Jun 2014 14:03:15 +0200 Subject: * fix for vdr > 2.1.1 --- vdrriprecordings.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vdrriprecordings.c b/vdrriprecordings.c index b63a780..fb626fb 100755 --- a/vdrriprecordings.c +++ b/vdrriprecordings.c @@ -29,10 +29,15 @@ cVdrripRecordings::~cVdrripRecordings() { void cVdrripRecordings::ReadRec() { char *cmd = NULL, *buf = NULL; size_t i = 0; +#if APIVERSNUM > 20101 + int colv = strnumcol(cVideoDirectory::Name(), "/"); + asprintf(&cmd, FINDRECCMD, cVideoDirectory::Name()); +#else int colv = strnumcol(VideoDirectory, "/"); asprintf(&cmd, FINDRECCMD, VideoDirectory); +#endif FILE *p = popen(cmd, "r"); if (p) { while (getline(&buf, &i, p) != -1) { -- cgit v1.2.3