From fcee7ea18f35dbcdad9e946bde05f64e1e0c9a31 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 13 Oct 2006 19:07:11 +0000 Subject: [PATCH] bails out if cdparanoia can't read cd (avoid lockup) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20201 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_cdda.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index 42d2713b51..081667c819 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -289,6 +289,8 @@ static int fill_buffer(stream_t* s, char* buffer, int max_len) { int i; buf = paranoia_read(p->cdp,cdparanoia_callback); + if (!buf) + return 0; #ifdef WORDS_BIGENDIAN for(i=0;i