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.
diff -ru mp3-original/decoder.c mp3/decoder.c
--- mp3-original/decoder.c      2014-02-14 10:36:30.782671000 +0200
+++ mp3/decoder.c       2014-02-14 10:18:32.749324540 +0200
@@ -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)
diff -ru mp3-original/player-mplayer.c mp3/player-mplayer.c
--- mp3-original/player-mplayer.c       2014-02-14 10:36:30.782671000 +0200
+++ mp3/player-mplayer.c        2014-02-14 10:26:33.827716456 +0200
@@ -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 {
_______________________________________________
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

Reply via email to