From 634ac3f97923286c64bf87857f4497e761a74547 Mon Sep 17 00:00:00 2001 From: rocky Date: Tue, 18 Jan 2005 16:05:29 +0000 Subject: [PATCH] Do not try to process if we got errors. More needs to be done, but this is a start. --- lib/cdda_interface/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cdda_interface/interface.c b/lib/cdda_interface/interface.c index f4e429f1..8fa5fb83 100644 --- a/lib/cdda_interface/interface.c +++ b/lib/cdda_interface/interface.c @@ -1,5 +1,5 @@ /* - $Id: interface.c,v 1.13 2005/01/15 16:05:44 rocky Exp $ + $Id: interface.c,v 1.14 2005/01/18 16:05:29 rocky Exp $ Copyright (C) 2005 Rocky Bernstein Copyright (C) 1998 Monty xiphmont@mit.edu @@ -122,7 +122,7 @@ long cdda_read(cdrom_drive_t *d, void *buffer, lsn_t beginsector, long sectors) if(sectors>0){ sectors=d->read_audio(d,buffer,beginsector,sectors); - if(sectors!=-1){ + if(sectors > 0){ /* byteswap? */ if(d->bigendianp==-1) /* not determined yet */ d->bigendianp=data_bigendianp(d);