Search
lxdream.org :: lxdream/src/gdrom/nrg.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/nrg.c
changeset 142:2f631c3a3946
prev138:afabd7e6d26d
next168:203a72138e16
author nkeynes
date Tue May 02 14:09:11 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add packet.h
Implement read toc, request sense, test ready commands.
Fix failure to clear error status on new command
file annotate diff log raw
1.1 --- a/src/gdrom/nrg.c Sun Apr 30 01:51:08 2006 +0000
1.2 +++ b/src/gdrom/nrg.c Tue May 02 14:09:11 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: nrg.c,v 1.1 2006-04-30 01:51:08 nkeynes Exp $
1.6 + * $Id: nrg.c,v 1.2 2006-05-02 14:09:11 nkeynes Exp $
1.7 *
1.8 * Nero (NRG) CD file format. File information stolen shamelessly from
1.9 * libcdio.
1.10 @@ -198,7 +198,7 @@
1.11 }
1.12 } else { /* Track-start address */
1.13 disc->track[track].lba = msf_to_lba( cue->addr );
1.14 -
1.15 + disc->track[track].flags = cue->type;
1.16 }
1.17 }
1.18 }
1.19 @@ -236,6 +236,10 @@
1.20 disc->close(disc);
1.21 return NULL;
1.22 }
1.23 + if( disc->track[track_id].mode == GDROM_CDDA )
1.24 + disc->track[track_id].flags = 0x01;
1.25 + else
1.26 + disc->track[track_id].flags = 0x01 | TRACK_DATA;
1.27 disc->track[track_id].sector_size = GDROM_SECTOR_SIZE(disc->track[track_id].mode);
1.28 disc->track[track_id].sector_count = ntohl(etnf->length) /
1.29 disc->track[track_id].sector_size;
.