summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Meyerholt <dxm523@googlemail.com>2014-06-21 14:03:15 +0200
committerDaniel Meyerholt <dxm523@googlemail.com>2014-06-21 14:03:15 +0200
commitdd9e8516cc1d9c816b85b97ce5af60c7cc6450c3 (patch)
treed0462a04d9a9d25a7e663e3115cdd5b781a4a7c4
parent863d9b4f3b106c7d3a1753a7108fb4bd95b451f2 (diff)
downloadvdr-plugin-vdrrip-dd9e8516cc1d9c816b85b97ce5af60c7cc6450c3.tar.gz
vdr-plugin-vdrrip-dd9e8516cc1d9c816b85b97ce5af60c7cc6450c3.tar.bz2
* fix for vdr > 2.1.1
-rwxr-xr-xvdrriprecordings.c5
1 files changed, 5 insertions, 0 deletions
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) {