Package: cdcd Version: 0.6.5-4 Tags: patch Hi!
I noticed that Bill Currie reported (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=308286) that cdcd had problems skipping data tracks and since I've been delving into cdcd's source code due to me trying to fix another bug I whipped up a patch against Debians cdcd 0.6.5-4 (that applies with offsets against upstreams 0.6.6) that fixes the issue according to my tests. This mail has been sent both to Debian Bug Tracking System and the upstream maintainer. / Sebastian Rasmussen --- cdcd-0.6.5-4/cmd_cdcd.c 2003-03-30 20:14:07.000000000 +0200 +++ cdcd-0.6.5-4.patched/cmd_cdcd.c 2005-07-25 19:18:51.000000000 +0200 @@ -401,10 +401,16 @@ cmd_play (char **argv) } } - if (disc.disc_track[play_track - 1].track_type == CDAUDIO_TRACK_DATA) + while (disc.disc_track[play_track - 1].track_type == CDAUDIO_TRACK_DATA) { - puts ("cannot play data track"); - return 0; + if (play_track == end_track) + { + puts ("cannot play data track"); + return 0; + } + + puts ("cannot play data track, skipping to next track"); + play_track++; } cd_play_track_pos (cd_desc, play_track, end_track, -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]