diff options
author | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-13 19:07:11 +0000 |
---|---|---|
committer | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-13 19:07:11 +0000 |
commit | fcee7ea18f35dbcdad9e946bde05f64e1e0c9a31 (patch) | |
tree | 2af793425082b575df0d0c4036e0eef84a4dc8a7 /stream | |
parent | 3ec87e80d9d13f17dc4579c5922d3dfcc7e62e73 (diff) |
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')
-rw-r--r-- | stream/stream_cdda.c | 2 |
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++) |