diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-28 14:04:54 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-28 14:04:54 +0000 |
commit | ff554dc0a002951e3e6ab6a0c126c5d113934fc6 (patch) | |
tree | 1ff2fafbda724e018c039c11990ec73b5bbdd055 /libmpdemux/cdda.c | |
parent | 86f78f0cf30ce094e6b029fee5548e2da6d5da74 (diff) | |
download | mpv-ff554dc0a002951e3e6ab6a0c126c5d113934fc6.tar.bz2 mpv-ff554dc0a002951e3e6ab6a0c126c5d113934fc6.tar.xz |
The following patch allows the MPlayer "cdparanoia" support to work on
NetBSD-1.6_STABLE, both "cdda://NN" and "cddb://NN" URI's.
The CDROM ioctl's are actually more like OpenBSD's than FreeBSD's. I
went with the "/dev/cdrom" symlink as the default device, though, as
it otherwise gets messy fast... The first CDROM is "/dev/rcd0d" on
NetBSD/i386, but "/dev/rcd0c" on all other NetBSD ports, and only the
cdda_identify_scsi() form seems to work on NetBSD. (I searched the web
in vain for the Paranoia API, so I'm left to hacking. ;-))
Frederick Bruckman <fredb@immanent.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8610 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/cdda.c')
-rw-r--r-- | libmpdemux/cdda.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpdemux/cdda.c b/libmpdemux/cdda.c index 33fcfd9ee3..e87b0864af 100644 --- a/libmpdemux/cdda.c +++ b/libmpdemux/cdda.c @@ -12,7 +12,11 @@ static int speed = -1; static int paranoia_mode = 1; +#if defined(__NetBSD__) +static char* generic_dev = "/dev/cdrom"; +#else static char* generic_dev = NULL; +#endif static int sector_size = 0; static int search_overlap = -1; static int toc_bias = 0; |