mirror of https://github.com/mpv-player/mpv
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:
parent
23486f48a5
commit
67218a1e0a
|
@ -12,11 +12,7 @@
|
||||||
|
|
||||||
static int speed = -1;
|
static int speed = -1;
|
||||||
static int paranoia_mode = 1;
|
static int paranoia_mode = 1;
|
||||||
#if defined(__NetBSD__)
|
|
||||||
static char* generic_dev = "/dev/cdrom";
|
|
||||||
#else
|
|
||||||
static char* generic_dev = NULL;
|
static char* generic_dev = NULL;
|
||||||
#endif
|
|
||||||
static int sector_size = 0;
|
static int sector_size = 0;
|
||||||
static int search_overlap = -1;
|
static int search_overlap = -1;
|
||||||
static int toc_bias = 0;
|
static int toc_bias = 0;
|
||||||
|
@ -72,7 +68,11 @@ stream_t* open_cdda(char* dev,char* track) {
|
||||||
if(generic_dev)
|
if(generic_dev)
|
||||||
cdd = cdda_identify_scsi(generic_dev,dev,0,NULL);
|
cdd = cdda_identify_scsi(generic_dev,dev,0,NULL);
|
||||||
else
|
else
|
||||||
|
#if defined(__NetBSD__)
|
||||||
|
cdd = cdda_identify_scsi(dev,dev,0,NULL);
|
||||||
|
#else
|
||||||
cdd = cdda_identify(dev,0,NULL);
|
cdd = cdda_identify(dev,0,NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
if(!cdd) {
|
if(!cdd) {
|
||||||
mp_msg(MSGT_OPEN,MSGL_ERR,"Can't open cdda device\n");
|
mp_msg(MSGT_OPEN,MSGL_ERR,"Can't open cdda device\n");
|
||||||
|
|
Loading…
Reference in New Issue