LinuxTV Patchwork mp3 plugin for vdr-2.1.4

login
register
mail settings
Submitter Pertti Kosunen
Date Feb. 14, 2014, 8:54 a.m.
Message ID <52FDD9B6.5070508@pp.nic.fi>
Download mbox | patch
Permalink /patch/22307/
State New
Headers show

Comments

Pertti Kosunen - Feb. 14, 2014, 8:54 a.m.
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.
Peter Münster - Feb. 14, 2014, 11:02 a.m.
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?
Pertti Kosunen - Feb. 14, 2014, 12:46 p.m.
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.)

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 {

Privacy Policy