Ticket #751: 751.patch
| File 751.patch, 1.0 KB (added by , 19 years ago) |
|---|
-
stream/vcd_read_fbsd.h
40 40 vcd_tocentry entry; 41 41 #ifdef VCD_NETBSD 42 42 struct cd_toc_entry entry_data; 43 #else44 cdsector_t buf;45 43 #endif 44 cdsector_t buf; 46 45 struct ioc_toc_header tochdr; 47 46 } mp_vcd_priv_t; 48 47 … … 208 207 sc.cmd[9] = 1 << 4; // user data only 209 208 sc.cmd[10] = 0; // no subchannel 210 209 sc.cmdlen = 12; 211 sc.databuf = (caddr_t) mem;212 sc.datalen = VCD_SECTOR_DATA ;210 sc.databuf = (caddr_t) vcd->buf.data; 211 sc.datalen = VCD_SECTOR_DATA + 4; // MMC-3 spec says there are 4 extra bytes 213 212 sc.senselen = sizeof(sc.sense); 214 213 sc.flags = SCCMD_READ; 215 214 sc.timeout = 10000; … … 226 225 #else 227 226 if (pread(vcd->fd,&vcd->buf,VCD_SECTOR_SIZE,vcd_get_msf(vcd)*VCD_SECTOR_SIZE) 228 227 != VCD_SECTOR_SIZE) return 0; // EOF? 228 #endif 229 229 230 230 memcpy(mem,vcd->buf.data,VCD_SECTOR_DATA); 231 #endif232 231 vcd_inc_msf(vcd); 233 232 return VCD_SECTOR_DATA; 234 233 }
