summaryrefslogtreecommitdiffstats
path: root/stream/stream_cdda.c
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-13 19:07:11 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-13 19:07:11 +0000
commitfcee7ea18f35dbcdad9e946bde05f64e1e0c9a31 (patch)
tree2af793425082b575df0d0c4036e0eef84a4dc8a7 /stream/stream_cdda.c
parent3ec87e80d9d13f17dc4579c5922d3dfcc7e62e73 (diff)
downloadmpv-fcee7ea18f35dbcdad9e946bde05f64e1e0c9a31.tar.bz2
mpv-fcee7ea18f35dbcdad9e946bde05f64e1e0c9a31.tar.xz
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
Diffstat (limited to 'stream/stream_cdda.c')
-rw-r--r--stream/stream_cdda.c2
1 files changed, 2 insertions, 0 deletions
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<CD_FRAMESIZE_RAW/2;i++)