cdio.c: missing string for discmode enumeration.

_cdio_osx.c: fix a couple of bus faults. Detects DVD-RW properly now.
  Better error message for failing to read TOC.
This commit is contained in:
rocky
2004-08-29 03:45:34 +00:00
parent 61374f1161
commit 1e45b03013
2 changed files with 19 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: cdio.c,v 1.71 2004/08/28 09:15:41 rocky Exp $
$Id: cdio.c,v 1.72 2004/08/29 03:45:35 rocky Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
@@ -39,7 +39,7 @@
#include <cdio/logging.h>
#include "cdio_private.h"
static const char _rcsid[] = "$Id: cdio.c,v 1.71 2004/08/28 09:15:41 rocky Exp $";
static const char _rcsid[] = "$Id: cdio.c,v 1.72 2004/08/29 03:45:35 rocky Exp $";
const char *track_format2str[6] =
@@ -50,8 +50,15 @@ const char *track_format2str[6] =
/* Must match discmode enumeration */
const char *discmode2str[] = {
"CD-DA",
"CD-DATA Form 1", "CD DATA Form 2", "CD-ROM Mixed",
"DVD-ROM", "DVD-RAM", "DVD-R", "DVD-RW", "DVD+RW",
"CD-DATA Form 1",
"CD DATA Form 2",
"CD-ROM Mixed",
"DVD-ROM",
"DVD-RAM",
"DVD-R",
"DVD-RW",
"DVD+R",
"DVD+RW",
"Unknown/unclassified DVD",
"No information",
"Error in getting information"