Commit Message
On 13.2.2014 23:36, Peter Münster wrote:
> Could anybody help please to make the plugin work with the latest vdr
> version?
Try attached patch.
Comments
On Fri, Feb 14 2014, Pertti Kosunen wrote:
> On 13.2.2014 23:36, Peter Münster wrote:
>> Could anybody help please to make the plugin work with the latest vdr
>> version?
>
> Try attached patch.
Thanks, it works! Have you already sent it to the plugin developer, or
should I do it?
On 14.2.2014 13:02, Peter Münster wrote:
> Thanks, it works! Have you already sent it to the plugin developer, or
> should I do it?
No i have not, you can send it. (I am not coder and 100% sure if it is
correct way to do it, just copied idea from other patches.)
@@ -632,7 +632,11 @@
char *cInfoCache::CacheFile(void)
{
+#if APIVERSNUM > 20101
+ return AddPath(cachedir?cachedir:cVideoDirectory::Name(),CACHEFILENAME);
+#else
return AddPath(cachedir?cachedir:VideoDirectory,CACHEFILENAME);
+#endif
}
void cInfoCache::Save(bool force)
@@ -185,7 +185,11 @@
if(MPlayerSetup.ResumeMode==1 ||
(access(s,W_OK) && (errno==EACCES || errno==EROFS))) {
global=true;
+#if APIVERSNUM > 20101
+ resfile=AddPath(globalResumeDir?globalResumeDir:cVideoDirectory::Name(),GLOBAL_RESUME_FILE);
+#else
resfile=AddPath(globalResumeDir?globalResumeDir:VideoDirectory,GLOBAL_RESUME_FILE);
+#endif
d(printf("resume: using global file\n"))
}
else {