Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: MP3/MPlayer plugin 0.9.5 (development)



On 07 Sep 2004 "Burkhardt Petermann" <bpetermann@xyware.de> wrote:

> thank you for the patches, but (Kernel 2.4.21, cdfs-2.4.20-a, VDR 1.2.6) now
> (also with 0.9.4 but not with 0.9.3) I've some problems with audiocds.
> I nearly can't jump to another track and then the vdr will not response to
> any other action (no output in the syslog)
> It seems that will come from the new "idle-modus" ...

More probably it's related to level background scan. Can you
please try to set background scan to ID2 only and see if this
improves the situation?

> Another thing: CDFS and CDDB are not a perfect team --> my little patch:
> (i) cdfsedit.pl in /bin
> (ii) in decoder-snd.c (soory I haven't the source here)

Well, this is a bit hackish in my opinion.
Are you refering to the fact that cdfs sometimes calculates a bad
diskid?
I have created a patch for this some time ago. It works for all
CDs reachable here, but this aren't too much. So don't blame me
if it fails...

The patch should apply to 0.5c, but newer 2.4.20 version as well.

--- discid.c.orig	Thu Dec 27 19:48:57 2001
+++ discid.c	Mon Feb 23 20:18:44 2004
@@ -5,14 +5,18 @@
 
 
 unsigned long discid(cd * this_cd) {
-  unsigned int i=0, t, n = 0;
+  unsigned int i=0, t, n = 0, trks=0, l=0;
 
   for (i=0; i< this_cd->tracks; i++)
-    n += cddb_sum((this_cd->track[T2I(i)].start_lba+CD_MSF_OFFSET)/CD_FRAMES);
+    if(this_cd->track[T2I(i)].type==AUDIO) {
+      n += cddb_sum((this_cd->track[T2I(i)].start_lba+CD_MSF_OFFSET)/CD_FRAMES);
+      trks++; l=i;
+      }
 
-  t = this_cd->track[T2I(this_cd->tracks-1)].stop_lba/CD_FRAMES;
+  t = (this_cd->track[T2I(l+1)].start_lba-
+       this_cd->track[T2I(0)].start_lba)/CD_FRAMES;
 
-  return (((n % 0xFF) << 24) | (t << 8) | this_cd->tracks);
+  return (((n % 0xFF) << 24) | (t << 8) | trks);
 }
 
Regards.

-- 
Stefan Huelswitt
s.huelswitt@gmx.de  | http://www.muempf.de/




Home | Main Index | Thread Index