diff --git a/include/cdio/paranoia.h b/include/cdio/paranoia.h index 5f96c271..5062ad04 100644 --- a/include/cdio/paranoia.h +++ b/include/cdio/paranoia.h @@ -1,7 +1,7 @@ /* - $Id: paranoia.h,v 1.13 2006/10/27 10:38:41 rocky Exp $ + $Id: paranoia.h,v 1.14 2007/09/28 12:09:38 rocky Exp $ - Copyright (C) 2004, 2005, 2006 Rocky Bernstein + Copyright (C) 2004, 2005, 2006, 2007 Rocky Bernstein Copyright (C) 1998 Monty xiphmont@mit.edu This program is free software; you can redistribute it and/or modify @@ -183,7 +183,7 @@ extern "C" { #define paranoia_read cdio_paranoia_read #define paranoia_read_limited cdio_paranoia_read_limited #define paranoia_overlapset cdio_paranoia_overlapset -#define paranoia_set_range cdio_paranoia_read_overlapset +#define paranoia_set_range cdio_paranoia_set_range #endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/ #ifdef __cplusplus diff --git a/lib/cdda_interface/common_interface.c b/lib/cdda_interface/common_interface.c index 2451fdb3..5e79cda3 100644 --- a/lib/cdda_interface/common_interface.c +++ b/lib/cdda_interface/common_interface.c @@ -1,5 +1,5 @@ /* - $Id: common_interface.c,v 1.15 2007/09/28 00:28:18 rocky Exp $ + $Id: common_interface.c,v 1.16 2007/09/28 12:09:39 rocky Exp $ Copyright (C) 2004, 2005, 2007 Rocky Bernstein Copyright (C) 1998, 2002 Monty monty@xiph.org @@ -186,8 +186,9 @@ data_bigendianp(cdrom_drive_t *d) /*! Here we fix up a couple of things that will never happen. yeah, right. - The multisession stuff is from Hannu's code; it assumes it knows - the leadout/leadin size. + The multisession stuff is from Hannu code; it assumes it knows the + leadout/leadin size. [I think Hannu refers to Hannu Savolainen + from GNU/Linux Kernel code.] @return -1 if we can't get multisession info, 0 if there is one session only or the last session LBA is the same as the first audio diff --git a/lib/paranoia/p_block.c b/lib/paranoia/p_block.c index 6e7664f8..8b6dccf8 100644 --- a/lib/paranoia/p_block.c +++ b/lib/paranoia/p_block.c @@ -1,7 +1,7 @@ /* - $Id: p_block.c,v 1.10 2006/01/05 21:58:52 rocky Exp $ + $Id: p_block.c,v 1.11 2007/09/28 12:09:39 rocky Exp $ - Copyright (C) 2004, 2005 Rocky Bernstein + Copyright (C) 2004, 2005, 2007 Rocky Bernstein Copyright (C) 1998 Monty xiphmont@mit.edu This program is free software; you can redistribute it and/or modify @@ -452,3 +452,9 @@ paranoia_init(cdrom_drive_t *d) return(p); } +void paranoia_set_range(cdrom_paranoia *p, long start, long end) +{ + p->cursor = start; + p->current_firstsector = start; + p->current_lastsector = end; +}