summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-17 22:28:29 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-17 22:28:29 +0000
commit53e2e139fa2b398a2a9279dbee590491fced7d6d (patch)
tree1b2756fdf1e2c20af2c480a083ae6070af0c2bcc /libmpdemux
parent4e3d49008eed2ca4df8a2c75c72cfe4238ec6400 (diff)
downloadmpv-53e2e139fa2b398a2a9279dbee590491fced7d6d.tar.bz2
mpv-53e2e139fa2b398a2a9279dbee590491fced7d6d.tar.xz
solaris fix by Gtz Waschk <waschk@informatik.uni-rostock.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10301 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/vcd_read.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpdemux/vcd_read.h b/libmpdemux/vcd_read.h
index 7d34d569f5..b8b2af8cb5 100644
--- a/libmpdemux/vcd_read.h
+++ b/libmpdemux/vcd_read.h
@@ -137,7 +137,7 @@ static int sun_vcd_read(mp_vcd_priv_t* vcd, int *offset)
cdxa.cdxa_data = vcd->buf;
cdxa.cdxa_format = CDROM_XA_SECTOR_DATA;
- if(ioctl(fd,CDROMCDXA,&cdxa)==-1) {
+ if(ioctl(vcd->fd,CDROMCDXA,&cdxa)==-1) {
mp_msg(MSGT_STREAM,MSGL_ERR,"CDROMCDXA: %s\n",strerror(errno));
return 0;
}
@@ -148,7 +148,7 @@ static int sun_vcd_read(mp_vcd_priv_t* vcd, int *offset)
cdread.cdread_bufaddr = vcd->buf;
cdread.cdread_buflen = 2336;
- if(ioctl(fd,CDROMREADMODE2,&cdread)==-1) {
+ if(ioctl(vcd->fd,CDROMREADMODE2,&cdread)==-1) {
mp_msg(MSGT_STREAM,MSGL_ERR,"CDROMREADMODE2: %s\n",strerror(errno));
return 0;
}
@@ -195,7 +195,7 @@ static int sun_vcd_read(mp_vcd_priv_t* vcd, int *offset)
sc.uscsi_buflen = 2336;
sc.uscsi_flags = USCSI_ISOLATE | USCSI_READ;
sc.uscsi_timeout = 20;
- if (ioctl(fd, USCSICMD, &sc)) {
+ if (ioctl(vcd->fd, USCSICMD, &sc)) {
mp_msg(MSGT_STREAM,MSGL_ERR,"USCSICMD: READ CD: %s\n",strerror(errno));
return -1;
}