changeset 9899:248c478a0699

typo fix
author nexus
date Thu, 10 Apr 2003 08:34:43 +0000
parents 51b2ab729370
children f36b9dda3082
files libmpdemux/vcd_read_fbsd.h
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/vcd_read_fbsd.h	Wed Apr 09 22:10:14 2003 +0000
+++ b/libmpdemux/vcd_read_fbsd.h	Thu Apr 10 08:34:43 2003 +0000
@@ -35,7 +35,7 @@
 int vcd_seek_to_track(mp_vcd_priv_t* vcd, int track){
   vcd->entry.address_format = CD_MSF_FORMAT;
   vcd->entry.track  = track;
-  if (ioctl(vcd->fd, CDIOREADTOCENTRY, &vcd_entry)) {
+  if (ioctl(vcd->fd, CDIOREADTOCENTRY, &vcd->entry)) {
     mp_msg(MSGT_STREAM,MSGL_ERR,"ioctl dif1: %s\n",strerror(errno));
     return -1;
   }
@@ -50,7 +50,7 @@
   }
   vcd->entry.address_format = CD_MSF_FORMAT;
   vcd->entry.track  = track<tochdr.ending_track?(track+1):CDROM_LEADOUT;
-  if (ioctl(vcd->fd, CDIOREADTOCENTRY, &vcd_entry)) {
+  if (ioctl(vcd->fd, CDIOREADTOCENTRY, &vcd->entry)) {
     mp_msg(MSGT_STREAM,MSGL_ERR,"ioctl dif2: %s\n",strerror(errno));
     return -1;
   }
@@ -93,7 +93,7 @@
 
 static int vcd_read(mp_vcd_priv_t* vcd,char *mem){
 
-      if (pread(vcd->fd,vcd->buf,VCD_SECTOR_SIZE,vcd_get_msf(vcd)*VCD_SECTOR_SIZE)
+      if (pread(vcd->fd,&vcd->buf,VCD_SECTOR_SIZE,vcd_get_msf(vcd)*VCD_SECTOR_SIZE)
 	 != VCD_SECTOR_SIZE) return 0;  // EOF?
 
       vcd->entry.entry.addr.msf.frame++;
@@ -105,7 +105,7 @@
           vcd->entry.entry.addr.msf.minute++;
         }
       }
-      memcpy(mem,vcd_buf.data,VCD_SECTOR_DATA);
+      memcpy(mem,vcd->buf.data,VCD_SECTOR_DATA);
       return VCD_SECTOR_DATA;
 }