[MPlayer-cvslog] r20201 - trunk/stream/stream_cdda.c

ben subversion at mplayerhq.hu
Fri Oct 13 21:07:11 CEST 2006


Author: ben
Date: Fri Oct 13 21:07:11 2006
New Revision: 20201

Modified:
   trunk/stream/stream_cdda.c

Log:
bails out if cdparanoia can't read cd (avoid lockup)

Modified: trunk/stream/stream_cdda.c
==============================================================================
--- trunk/stream/stream_cdda.c	(original)
+++ trunk/stream/stream_cdda.c	Fri Oct 13 21:07:11 2006
@@ -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++)



More information about the MPlayer-cvslog mailing list