Back off of testing for unread TOC. Probably a good idea to do lazy
TOC reading.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: _cdio_linux.c,v 1.51 2004/06/06 10:50:55 rocky Exp $
|
||||
$Id: _cdio_linux.c,v 1.52 2004/06/06 11:25:13 rocky Exp $
|
||||
|
||||
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Copyright (C) 2002, 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
||||
@@ -27,7 +27,7 @@
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
static const char _rcsid[] = "$Id: _cdio_linux.c,v 1.51 2004/06/06 10:50:55 rocky Exp $";
|
||||
static const char _rcsid[] = "$Id: _cdio_linux.c,v 1.52 2004/06/06 11:25:13 rocky Exp $";
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -909,6 +909,8 @@ _get_track_green_linux(void *user_data, track_t i_track)
|
||||
{
|
||||
_img_private_t *env = user_data;
|
||||
|
||||
if (!env->gen.toc_init) _cdio_read_toc (env) ;
|
||||
|
||||
if (i_track > (TOTAL_TRACKS+FIRST_TRACK_NUM) || i_track < FIRST_TRACK_NUM)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user