changeset 10300:134e4332f550

solaris fix by Gtz Waschk <waschk@informatik.uni-rostock.de>
author alex
date Tue, 17 Jun 2003 22:28:29 +0000
parents 71ae59ea3c46
children 82c26f554cd0
files libmpdemux/vcd_read.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/vcd_read.h	Tue Jun 17 22:24:08 2003 +0000
+++ b/libmpdemux/vcd_read.h	Tue Jun 17 22:28:29 2003 +0000
@@ -137,7 +137,7 @@
   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 @@
   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 @@
   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;
   }