diff options
author | Daniel Meyerholt <dxm523@googlemail.com> | 2014-06-21 14:03:15 +0200 |
---|---|---|
committer | Daniel Meyerholt <dxm523@googlemail.com> | 2014-06-21 14:03:15 +0200 |
commit | dd9e8516cc1d9c816b85b97ce5af60c7cc6450c3 (patch) | |
tree | d0462a04d9a9d25a7e663e3115cdd5b781a4a7c4 | |
parent | 863d9b4f3b106c7d3a1753a7108fb4bd95b451f2 (diff) | |
download | vdr-plugin-vdrrip-dd9e8516cc1d9c816b85b97ce5af60c7cc6450c3.tar.gz vdr-plugin-vdrrip-dd9e8516cc1d9c816b85b97ce5af60c7cc6450c3.tar.bz2 |
* fix for vdr > 2.1.1
-rwxr-xr-x | vdrriprecordings.c | 5 |
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) { |