gnu_linux: get_disc_last_lsn: cdte_format seems to want to be CDROM_MSF

example/tracks.c: add a call to cdio_get_disc_last_lsn()
NEWS - note UDF limitation. correct spelling typo.
This commit is contained in:
rocky
2006-07-30 13:19:49 +00:00
parent ad9d1fedde
commit 6a7e4c5d8f
3 changed files with 12 additions and 9 deletions

9
NEWS
View File

@@ -1,12 +1,13 @@
$Id: NEWS,v 1.101 2006/06/12 22:51:26 gmerlin Exp $
$Id: NEWS,v 1.102 2006/07/30 13:19:49 rocky Exp $
version 0.78cvs
=====================================
- add mmc-tool
- add mmc-close-tray
- libudf: can now read (extract) file data
- libudf: can now read (extract) file data, at least for ICB strategy
type 4.
- libcdio is starting to get updated for UTF-8 support. Strings,
which are garantueed to be in UTF-8, are returned as a new type
which are guaranteed to be in UTF-8, are returned as a new type
cdio_utf8_t, which is typedef'd to char.
version 0.77
@@ -353,4 +354,4 @@ version 0.1
Routines split off from VCDImager.
$Id: NEWS,v 1.101 2006/06/12 22:51:26 gmerlin Exp $
$Id: NEWS,v 1.102 2006/07/30 13:19:49 rocky Exp $

View File

@@ -1,5 +1,5 @@
/*
$Id: tracks.c,v 1.5 2006/01/22 08:17:40 rocky Exp $
$Id: tracks.c,v 1.6 2006/07/30 13:19:49 rocky Exp $
Copyright (C) 2003, 2004, 2005, 2006 Rocky Bernstein <rocky@panix.com>
@@ -42,6 +42,8 @@ main(int argc, const char *argv[])
return 1;
}
printf("Disc last LSN: %d\n", cdio_get_disc_last_lsn(p_cdio));
i_tracks = cdio_get_num_tracks(p_cdio);
i_first_track = i = cdio_get_first_track_num(p_cdio);

View File

@@ -1,5 +1,5 @@
/*
$Id: gnu_linux.c,v 1.22 2006/04/04 02:06:13 rocky Exp $
$Id: gnu_linux.c,v 1.23 2006/07/30 13:19:49 rocky Exp $
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2002, 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
@@ -27,7 +27,7 @@
# include "config.h"
#endif
static const char _rcsid[] = "$Id: gnu_linux.c,v 1.22 2006/04/04 02:06:13 rocky Exp $";
static const char _rcsid[] = "$Id: gnu_linux.c,v 1.23 2006/07/30 13:19:49 rocky Exp $";
#include <string.h>
@@ -1165,7 +1165,7 @@ get_disc_last_lsn_linux (void *p_user_data)
uint32_t i_size;
tocent.cdte_track = CDIO_CDROM_LEADOUT_TRACK;
tocent.cdte_format = CDROM_LBA;
tocent.cdte_format = CDROM_MSF;
if (ioctl (p_env->gen.fd, CDROMREADTOCENTRY, &tocent) == -1)
{
cdio_warn ("ioctl CDROMREADTOCENTRY failed: %s\n", strerror(errno));