Show green status for each track.
cd-info.c: above + fewer assertions cd-read.c: direction we'll go when after release.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: cd-info.c,v 1.42 2003/10/06 04:04:05 rocky Exp $
|
||||
$Id: cd-info.c,v 1.43 2003/10/15 01:59:51 rocky Exp $
|
||||
|
||||
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
||||
Copyright (C) 1996,1997,1998 Gerd Knorr <kraxel@bytesex.org>
|
||||
@@ -482,7 +482,10 @@ print_iso9660_recurse (CdIo *cdio, const char pathname[], cdio_fs_anal_t fs,
|
||||
|
||||
printf ("%s:\n", pathname);
|
||||
|
||||
cdio_assert (entlist != NULL);
|
||||
if (NULL == entlist) {
|
||||
fprintf (stderr, "Error getting above directory information\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Iterate over files in this directory */
|
||||
|
||||
@@ -500,8 +503,11 @@ print_iso9660_recurse (CdIo *cdio, const char pathname[], cdio_fs_anal_t fs,
|
||||
snprintf (_fullname, sizeof (_fullname), "%s%s", pathname,
|
||||
iso_name);
|
||||
|
||||
if (iso9660_fs_stat (cdio, _fullname, &statbuf, is_mode2))
|
||||
cdio_assert_not_reached ();
|
||||
if (iso9660_fs_stat (cdio, _fullname, &statbuf, is_mode2)) {
|
||||
fprintf(stderr, "Error getting file info for directory %s/\n",
|
||||
_fullname);
|
||||
continue;
|
||||
}
|
||||
|
||||
strncat (_fullname, "/", sizeof (_fullname));
|
||||
|
||||
@@ -535,7 +541,7 @@ print_iso9660_recurse (CdIo *cdio, const char pathname[], cdio_fs_anal_t fs,
|
||||
|
||||
printf ("\n");
|
||||
|
||||
/* Now wecurse over the directories. */
|
||||
/* Now recurse over the directories. */
|
||||
|
||||
_CDIO_LIST_FOREACH (entnode, dirlist)
|
||||
{
|
||||
@@ -815,7 +821,7 @@ main(int argc, const char *argv[])
|
||||
printf(STRONG "CD-ROM Track List (%i - %i)\n" NORMAL,
|
||||
first_track_num, num_tracks);
|
||||
|
||||
printf(" #: MSF LSN Type\n");
|
||||
printf(" #: MSF LSN Type Green?\n");
|
||||
}
|
||||
|
||||
/* Read and possibly print track information. */
|
||||
@@ -834,12 +840,12 @@ main(int argc, const char *argv[])
|
||||
(long unsigned int) cdio_msf_to_lsn(&msf));
|
||||
break;
|
||||
} else if (!opts.no_tracks) {
|
||||
printf("%3d: %2.2x:%2.2x:%2.2x %06lu %s\n",
|
||||
printf("%3d: %2.2x:%2.2x:%2.2x %06lu %-5s %s\n",
|
||||
(int) i,
|
||||
msf.m, msf.s, msf.f,
|
||||
(long unsigned int) cdio_msf_to_lsn(&msf),
|
||||
track_format2str[cdio_get_track_format(cdio, i)]);
|
||||
|
||||
track_format2str[cdio_get_track_format(cdio, i)],
|
||||
cdio_get_track_green(cdio, i)? "true" : "false");
|
||||
}
|
||||
|
||||
if (TRACK_FORMAT_AUDIO == cdio_get_track_format(cdio, i)) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: cd-read.c,v 1.10 2003/10/03 01:33:30 rocky Exp $
|
||||
$Id: cd-read.c,v 1.11 2003/10/15 01:59:51 rocky Exp $
|
||||
|
||||
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
@@ -57,6 +57,9 @@ typedef enum
|
||||
READ_M1F2,
|
||||
READ_M2F1,
|
||||
READ_M2F2
|
||||
#if AUTO_FINISHED
|
||||
READ_AUTO
|
||||
#endif
|
||||
} read_mode_t;
|
||||
|
||||
/* Structure used so we can binary sort and set the --mode switch. */
|
||||
@@ -481,6 +484,15 @@ main(int argc, const char *argv[])
|
||||
blocklen=M2F2_SECTOR_SIZE;
|
||||
cdio_read_mode2_sector(cdio, &buffer, opts.start_lsn, true);
|
||||
break;
|
||||
#if AUTO_FINISHED
|
||||
case READ_AUTO:
|
||||
/* Find what track lsn is in. Then
|
||||
switch cdio_get_track_format(cdio, i)
|
||||
and also test using is_green
|
||||
|
||||
*/
|
||||
break;
|
||||
#endif
|
||||
case READ_MODE_UNINIT:
|
||||
err_exit("%s: Reading mode not set\n", program_name);
|
||||
break;
|
||||
|
||||
@@ -3,8 +3,8 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 audio
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 audio false
|
||||
170: 00:06:02 000302 leadout
|
||||
Media Catalog Number (MCN): not available
|
||||
__________________________________
|
||||
|
||||
@@ -3,7 +3,7 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 data
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 data false
|
||||
170: 00:06:02 000302 leadout
|
||||
Media Catalog Number (MCN): 0000010271955
|
||||
|
||||
@@ -3,7 +3,7 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 data
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 data false
|
||||
170: 00:06:02 000302 leadout
|
||||
Media Catalog Number (MCN): 0000010271955
|
||||
|
||||
@@ -3,8 +3,8 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 data
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 data false
|
||||
170: 00:06:02 000302 leadout
|
||||
Media Catalog Number (MCN): 0000010271955
|
||||
__________________________________
|
||||
|
||||
@@ -3,8 +3,8 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 data
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 data false
|
||||
170: 00:06:02 000302 leadout
|
||||
Media Catalog Number (MCN): 0000010271955
|
||||
__________________________________
|
||||
|
||||
@@ -3,8 +3,8 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 data
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 data false
|
||||
170: 00:06:02 000302 leadout
|
||||
Media Catalog Number (MCN): 0000010271955
|
||||
__________________________________
|
||||
|
||||
@@ -3,8 +3,8 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 data
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 data false
|
||||
170: 00:06:02 000302 leadout
|
||||
Media Catalog Number (MCN): 0000010271955
|
||||
__________________________________
|
||||
|
||||
@@ -3,8 +3,8 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 1)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 data
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 data false
|
||||
170: 00:06:02 000302 leadout
|
||||
Media Catalog Number (MCN): 0000010271955
|
||||
__________________________________
|
||||
|
||||
@@ -3,9 +3,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 2)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 XA
|
||||
2: 00:18:51 001251 XA
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 XA true
|
||||
2: 00:18:51 001251 XA true
|
||||
170: 00:39:71 002846 leadout
|
||||
Media Catalog Number (MCN): not available
|
||||
__________________________________
|
||||
|
||||
@@ -3,9 +3,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 2)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 XA
|
||||
2: 00:09:01 000526 XA
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 XA true
|
||||
2: 00:09:01 000526 XA true
|
||||
170: 00:56:56 004106 leadout
|
||||
Media Catalog Number (MCN): not available
|
||||
__________________________________
|
||||
|
||||
@@ -3,9 +3,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 2)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 XA
|
||||
2: 00:22:53 001553 XA
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 XA true
|
||||
2: 00:22:53 001553 XA true
|
||||
170: 01:17:62 005687 leadout
|
||||
Media Catalog Number (MCN): not available
|
||||
__________________________________
|
||||
|
||||
@@ -3,10 +3,10 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 3)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 XA
|
||||
2: 00:17:57 001182 XA
|
||||
3: 00:24:71 001721 XA
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 XA true
|
||||
2: 00:17:57 001182 XA true
|
||||
3: 00:24:71 001721 XA true
|
||||
170: 00:30:10 002110 leadout
|
||||
Media Catalog Number (MCN): not available
|
||||
__________________________________
|
||||
|
||||
@@ -3,10 +3,10 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 3)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 XA
|
||||
2: 00:17:57 001182 XA
|
||||
3: 00:24:71 001721 XA
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 XA true
|
||||
2: 00:17:57 001182 XA true
|
||||
3: 00:24:71 001721 XA true
|
||||
170: 00:30:10 002110 leadout
|
||||
Media Catalog Number (MCN): not available
|
||||
__________________________________
|
||||
|
||||
@@ -3,12 +3,12 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||
PARTICULAR PURPOSE.
|
||||
__________________________________
|
||||
CD-ROM Track List (1 - 5)
|
||||
#: MSF LSN Type
|
||||
1: 00:02:00 000000 XA
|
||||
2: 00:13:01 000826 XA
|
||||
3: 00:16:01 001051 XA
|
||||
4: 00:19:01 001276 XA
|
||||
5: 00:22:01 001501 XA
|
||||
#: MSF LSN Type Green?
|
||||
1: 00:02:00 000000 XA true
|
||||
2: 00:13:01 000826 XA true
|
||||
3: 00:16:01 001051 XA true
|
||||
4: 00:19:01 001276 XA true
|
||||
5: 00:22:01 001501 XA true
|
||||
170: 00:25:01 001726 leadout
|
||||
Media Catalog Number (MCN): not available
|
||||
__________________________________
|
||||
|
||||
Reference in New Issue
Block a user