diff options
author | pav <pav@FreeBSD.org> | 2004-03-06 23:06:59 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-03-06 23:06:59 +0800 |
commit | af610a4302883bb9febb2212dd447f622de9f353 (patch) | |
tree | 060c86331dd0f511edd6dd5a0b0594ae2fdf8351 /audio/xmms-cdread | |
parent | ae3b60df666376b000fc342529ff36f1fc13ab37 (diff) | |
download | freebsd-ports-gnome-af610a4302883bb9febb2212dd447f622de9f353.tar.gz freebsd-ports-gnome-af610a4302883bb9febb2212dd447f622de9f353.tar.zst freebsd-ports-gnome-af610a4302883bb9febb2212dd447f622de9f353.zip |
- "Drive read speed selection now works correctly."
PR: ports/63785
Submitted by: Igor Pokrovsky <tiamat@comset.net>
Approved by: maintainer
Diffstat (limited to 'audio/xmms-cdread')
-rw-r--r-- | audio/xmms-cdread/Makefile | 2 | ||||
-rw-r--r-- | audio/xmms-cdread/files/patch-cdrombsd.h | 30 |
2 files changed, 24 insertions, 8 deletions
diff --git a/audio/xmms-cdread/Makefile b/audio/xmms-cdread/Makefile index c1cba52f42bd..08ade4feb910 100644 --- a/audio/xmms-cdread/Makefile +++ b/audio/xmms-cdread/Makefile @@ -7,7 +7,7 @@ PORTNAME= xmms-cdread PORTVERSION= 0.14a -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= ftp://ftp.stack.nl/pub/users/willem/ diff --git a/audio/xmms-cdread/files/patch-cdrombsd.h b/audio/xmms-cdread/files/patch-cdrombsd.h index 08d230a14279..37f8e17e9d87 100644 --- a/audio/xmms-cdread/files/patch-cdrombsd.h +++ b/audio/xmms-cdread/files/patch-cdrombsd.h @@ -1,15 +1,13 @@ ---- cdrombsd.h.orig Sat Aug 18 15:09:10 2001 -+++ cdrombsd.h Thu Nov 20 19:24:05 2003 -@@ -5,15 +5,19 @@ +--- cdrombsd.h.orig Sat Aug 18 14:09:10 2001 ++++ cdrombsd.h Thu Mar 4 09:55:32 2004 +@@ -5,15 +5,17 @@ #ifndef CDROMBSD_H #define CDROMBSD_H #include <sys/param.h> -+#if __FreeBSD_version >= 501106 +#include <sys/cdrio.h> +#ifndef CD_FRAMESIZE_RAW +#define CD_FRAMESIZE_RAW 2352 +#endif -+#endif /*\ |*| FreeBSD (?) specific code \*/ @@ -25,7 +23,25 @@ /*\ -@@ -84,6 +88,16 @@ +@@ -26,16 +28,14 @@ + int fd; + fd = open(device, O_RDONLY|O_NONBLOCK); + if (fd < 0) return -1; +-#ifdef CDROM_SELECT_SPEED + if (!(*flags & FLAG_FAIL_SPD) && +- (ioctl(fd, CDROM_SELECT_SPEED, cd_cfg.cdrom_speed) < 0)) { ++ (ioctl(fd, CDRIOCREADSPEED, &cd_cfg.cdrom_speed) < 0)) { + if (errno == ENOTTY) { + close(fd); + return -1; + } + *flags |= FLAG_FAIL_SPD; + } +-#endif + return fd; + } + +@@ -84,6 +84,16 @@ |*| from device cdfd, at position lba |*| Return number of successfully read frames, -1 on error. \*/ @@ -42,7 +58,7 @@ static int cdrom_read_audio(int cdfd, int lba, char *buf, int btw) { -@@ -101,6 +115,7 @@ +@@ -101,6 +111,7 @@ } while (--rtr >= 0); return -1; } |