Removed the hardcoded /dev/cdrom for NetBSD and added an work around

for problem with cdparanoia.
Patch from Frederick Bruckman <fredb@immanent.net>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8959 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
bertrand 2003-01-15 17:50:21 +00:00
parent 23486f48a5
commit 67218a1e0a
1 changed files with 4 additions and 4 deletions

View File

@ -12,11 +12,7 @@
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;
@ -72,7 +68,11 @@ stream_t* open_cdda(char* dev,char* track) {
if(generic_dev)
cdd = cdda_identify_scsi(generic_dev,dev,0,NULL);
else
#if defined(__NetBSD__)
cdd = cdda_identify_scsi(dev,dev,0,NULL);
#else
cdd = cdda_identify(dev,0,NULL);
#endif
if(!cdd) {
mp_msg(MSGT_OPEN,MSGL_ERR,"Can't open cdda device\n");