changeset 20195:32a550c28268

bails out if cdparanoia can't read cd (avoid lockup)
author ben
date Fri, 13 Oct 2006 19:07:11 +0000
parents 10cebc4e94ae
children 08c72bfa73e3
files stream/stream_cdda.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_cdda.c	Fri Oct 13 17:30:41 2006 +0000
+++ b/stream/stream_cdda.c	Fri Oct 13 19:07:11 2006 +0000
@@ -289,6 +289,8 @@
   int i;
   
   buf = paranoia_read(p->cdp,cdparanoia_callback);
+  if (!buf)
+    return 0;
 
 #ifdef WORDS_BIGENDIAN 
   for(i=0;i<CD_FRAMESIZE_RAW/2;i++)